Files
enaklo-flutter/lib/application/voucher/voucher_loader/voucher_loader_state.dart
T
efrilm 38850b281f
Build & Deploy iOS to TestFlight / build-and-deploy (push) Canceled after 0s
feat: integrate enakgame and voucher
2026-10-10 02:33:16 +07:00

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