Files
enaklo-flutter/lib/application/voucher/voucher_loader/voucher_loader_state.dart
T

15 lines
447 B
Dart
Raw Normal View History

2026-10-10 02:33:16 +07:00
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());
}