Constructors
-
WalletEvent.checkCode({required BuildContext context, required String code, required VoidCallback onSuccess})
-
const
factory
-
WalletEvent.createCard({required BuildContext context, required String number, required String expiredDate, required VoidCallback onSuccess})
-
const
factory
-
WalletEvent.deleteCard({required BuildContext context, required int cardId})
-
const
factory
-
WalletEvent.getTransaction({required BuildContext context, RefreshController? controller, bool? isRefresh})
-
const
factory
-
WalletEvent.getWallets({required BuildContext context})
-
const
factory
-
WalletEvent.selectIndex({required int index})
-
const
factory
-
WalletEvent.topUp({required BuildContext context, required int cardId, required num amount, required VoidCallback onSuccess})
-
const
factory
-
WalletEvent.withdraw({required BuildContext context, required int cardId, required num amount, required VoidCallback onSuccess})
-
const
factory
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<TResult extends Object?>({required TResult checkCode(CheckCode value), required TResult getWallets(GetWallets value), required TResult createCard(CreateCard value), required TResult deleteCard(DeleteCard value), required TResult topUp(TopUp value), required TResult withdraw(Withdraw value), required TResult selectIndex(SelectIndex value), required TResult getTransaction(GetTransaction value)})
→ TResult
-
inherited
-
mapOrNull<TResult extends Object?>({TResult? checkCode(CheckCode value)?, TResult? getWallets(GetWallets value)?, TResult? createCard(CreateCard value)?, TResult? deleteCard(DeleteCard value)?, TResult? topUp(TopUp value)?, TResult? withdraw(Withdraw value)?, TResult? selectIndex(SelectIndex value)?, TResult? getTransaction(GetTransaction value)?})
→ TResult?
-
inherited
-
maybeMap<TResult extends Object?>({TResult checkCode(CheckCode value)?, TResult getWallets(GetWallets value)?, TResult createCard(CreateCard value)?, TResult deleteCard(DeleteCard value)?, TResult topUp(TopUp value)?, TResult withdraw(Withdraw value)?, TResult selectIndex(SelectIndex value)?, TResult getTransaction(GetTransaction value)?, required TResult orElse()})
→ TResult
-
inherited
-
maybeWhen<TResult extends Object?>({TResult checkCode(BuildContext context, String code, VoidCallback onSuccess)?, TResult getWallets(BuildContext context)?, TResult createCard(BuildContext context, String number, String expiredDate, VoidCallback onSuccess)?, TResult deleteCard(BuildContext context, int cardId)?, TResult topUp(BuildContext context, int cardId, num amount, VoidCallback onSuccess)?, TResult withdraw(BuildContext context, int cardId, num amount, VoidCallback onSuccess)?, TResult selectIndex(int index)?, TResult getTransaction(BuildContext context, RefreshController? controller, bool? isRefresh)?, required TResult orElse()})
→ TResult
-
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
when<TResult extends Object?>({required TResult checkCode(BuildContext context, String code, VoidCallback onSuccess), required TResult getWallets(BuildContext context), required TResult createCard(BuildContext context, String number, String expiredDate, VoidCallback onSuccess), required TResult deleteCard(BuildContext context, int cardId), required TResult topUp(BuildContext context, int cardId, num amount, VoidCallback onSuccess), required TResult withdraw(BuildContext context, int cardId, num amount, VoidCallback onSuccess), required TResult selectIndex(int index), required TResult getTransaction(BuildContext context, RefreshController? controller, bool? isRefresh)})
→ TResult
-
inherited
-
whenOrNull<TResult extends Object?>({TResult? checkCode(BuildContext context, String code, VoidCallback onSuccess)?, TResult? getWallets(BuildContext context)?, TResult? createCard(BuildContext context, String number, String expiredDate, VoidCallback onSuccess)?, TResult? deleteCard(BuildContext context, int cardId)?, TResult? topUp(BuildContext context, int cardId, num amount, VoidCallback onSuccess)?, TResult? withdraw(BuildContext context, int cardId, num amount, VoidCallback onSuccess)?, TResult? selectIndex(int index)?, TResult? getTransaction(BuildContext context, RefreshController? controller, bool? isRefresh)?})
→ TResult?
-
inherited