Files

15 lines
451 B
Dart
Raw Permalink Normal View History

part of 'wallet_loader_bloc.dart';
@freezed
abstract class WalletLoaderState with _$WalletLoaderState {
const factory WalletLoaderState({
required WalletSummary summary,
required Option<WalletFailure> failureOption,
@Default(false) bool isFetching,
@Default(false) bool hasLoaded,
}) = _WalletLoaderState;
factory WalletLoaderState.initial() =>
WalletLoaderState(summary: WalletSummary.empty(), failureOption: none());
}