15 lines
447 B
Dart
15 lines
447 B
Dart
part of 'voucher_loader_bloc.dart';
|
|
|
|
@freezed
|
|
abstract class VoucherLoaderState with _$VoucherLoaderState {
|
|
const factory VoucherLoaderState({
|
|
required List<Voucher> vouchers,
|
|
required Option<WalletFailure> failureOption,
|
|
@Default(false) bool isFetching,
|
|
@Default(false) bool hasLoaded,
|
|
}) = _VoucherLoaderState;
|
|
|
|
factory VoucherLoaderState.initial() =>
|
|
VoucherLoaderState(vouchers: const [], failureOption: none());
|
|
}
|