outlet dialog
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
part of 'outlet_loader_bloc.dart';
|
||||
|
||||
@freezed
|
||||
class OutletLoaderState with _$OutletLoaderState {
|
||||
const factory OutletLoaderState({
|
||||
required List<Outlet> outlets,
|
||||
required Option<OutletFailure> failureOptionOutlet,
|
||||
@Default(false) bool isFetching,
|
||||
@Default(false) bool hasReachedMax,
|
||||
@Default(1) int page,
|
||||
}) = _OutletLoaderState;
|
||||
|
||||
factory OutletLoaderState.initial() =>
|
||||
OutletLoaderState(outlets: [], failureOptionOutlet: none());
|
||||
}
|
||||
Reference in New Issue
Block a user