Files

15 lines
437 B
Dart
Raw Permalink Normal View History

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());
}