15 lines
437 B
Dart
15 lines
437 B
Dart
part of 'outlet_loader_bloc.dart';
|
|||
|
|
|
||
|
|
@freezed
|
||
|
|
abstract class OutletLoaderState with _$OutletLoaderState {
|
||
|
|
const factory OutletLoaderState({
|
||
|
|
required List<Outlet> outlets,
|
||
|
|
required Option<WalletFailure> failureOption,
|
||
|
|
@Default(false) bool isFetching,
|
||
|
|
@Default(false) bool hasLoaded,
|
||
|
|
}) = _OutletLoaderState;
|
||
|
|
|
||
|
|
factory OutletLoaderState.initial() =>
|
||
|
|
OutletLoaderState(outlets: const [], failureOption: none());
|
||
|
|
}
|