Constructors
-
TokenTransfer({@TimestampConverter() @JsonKey(name: 'updatedAt') int timestamp, @JsonKey(name: '_id') required String id, String name, String? txHash, required String userOpHash, required String status, int? blockNumber, required String description, List<TokenEvent> sent, List<TokenEvent> received})
-
const
factory
-
TokenTransfer.fromJson(Map<String, dynamic> json)
-
factory
Methods
-
compareTo(WalletAction? other)
→ int
-
Compares this WalletAction to
other
, based on their timestamps.
inherited
-
isConfirmed()
→ bool
-
Checks if the wallet action has been confirmed.
inherited
-
isFailed()
→ bool
-
Checks if the wallet action has failed.
inherited
-
isPending()
→ bool
-
Checks if the wallet action is in a pending state.
inherited
-
map<TResult extends Object?>({required TResult batchTransaction(BatchTransaction value), required TResult tokenTransfer(TokenTransfer value), required TResult tokenReceive(TokenReceive value), required TResult nftReceive(NftReceive value), required TResult swapTokens(SwapTokens value), required TResult nftTransfer(NftTransfer value), required TResult approveToken(ApproveToken value), required TResult stakeTokens(StakeTokensAction value), required TResult unstakeTokens(UnstakeTokensAction value)})
→ TResult
-
inherited
-
mapOrNull<TResult extends Object?>({TResult? batchTransaction(BatchTransaction value)?, TResult? tokenTransfer(TokenTransfer value)?, TResult? tokenReceive(TokenReceive value)?, TResult? nftReceive(NftReceive value)?, TResult? swapTokens(SwapTokens value)?, TResult? nftTransfer(NftTransfer value)?, TResult? approveToken(ApproveToken value)?, TResult? stakeTokens(StakeTokensAction value)?, TResult? unstakeTokens(UnstakeTokensAction value)?})
→ TResult?
-
inherited
-
maybeMap<TResult extends Object?>({TResult batchTransaction(BatchTransaction value)?, TResult tokenTransfer(TokenTransfer value)?, TResult tokenReceive(TokenReceive value)?, TResult nftReceive(NftReceive value)?, TResult swapTokens(SwapTokens value)?, TResult nftTransfer(NftTransfer value)?, TResult approveToken(ApproveToken value)?, TResult stakeTokens(StakeTokensAction value)?, TResult unstakeTokens(UnstakeTokensAction value)?, required TResult orElse()})
→ TResult
-
inherited
-
maybeWhen<TResult extends Object?>({TResult batchTransaction(int timestamp, String id, String name, String? txHash, String status, int? blockNumber, String userOpHash, String description, List<TokenEvent> sent, List<TokenEvent> received)?, TResult tokenTransfer(int timestamp, String id, String name, String? txHash, String userOpHash, String status, int? blockNumber, String description, List<TokenEvent> sent, List<TokenEvent> received)?, TResult tokenReceive(int timestamp, String id, String name, String? txHash, String? userOpHash, String status, int? blockNumber, String description, List<TokenEvent> sent, List<TokenEvent> received)?, TResult nftReceive(int timestamp, String id, String name, String? txHash, String? userOpHash, String status, int? blockNumber, String description, List<TokenEvent> sent, List<TokenEvent> received)?, TResult swapTokens(int timestamp, String id, String name, String? txHash, String status, int? blockNumber, String userOpHash, String description, List<TokenEvent> sent, List<TokenEvent> received)?, TResult nftTransfer(int timestamp, String id, String name, String? txHash, String status, int? blockNumber, String userOpHash, String description, List<TokenEvent> sent, List<TokenEvent> received)?, TResult approveToken(int timestamp, String id, String name, String? txHash, String status, int? blockNumber, String userOpHash, String description, List<TokenEvent> sent, List<TokenEvent> received)?, TResult stakeTokens(int timestamp, String id, String name, String? txHash, String status, int? blockNumber, String userOpHash, String description, List<TokenEvent> sent, List<TokenEvent> received)?, TResult unstakeTokens(int timestamp, String id, String name, String? txHash, String status, int? blockNumber, String userOpHash, String description, List<TokenEvent> sent, List<TokenEvent> received)?, required TResult orElse()})
→ TResult
-
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson()
→ Map<String, dynamic>
-
Serializes this WalletAction to a JSON map.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
when<TResult extends Object?>({required TResult batchTransaction(int timestamp, String id, String name, String? txHash, String status, int? blockNumber, String userOpHash, String description, List<TokenEvent> sent, List<TokenEvent> received), required TResult tokenTransfer(int timestamp, String id, String name, String? txHash, String userOpHash, String status, int? blockNumber, String description, List<TokenEvent> sent, List<TokenEvent> received), required TResult tokenReceive(int timestamp, String id, String name, String? txHash, String? userOpHash, String status, int? blockNumber, String description, List<TokenEvent> sent, List<TokenEvent> received), required TResult nftReceive(int timestamp, String id, String name, String? txHash, String? userOpHash, String status, int? blockNumber, String description, List<TokenEvent> sent, List<TokenEvent> received), required TResult swapTokens(int timestamp, String id, String name, String? txHash, String status, int? blockNumber, String userOpHash, String description, List<TokenEvent> sent, List<TokenEvent> received), required TResult nftTransfer(int timestamp, String id, String name, String? txHash, String status, int? blockNumber, String userOpHash, String description, List<TokenEvent> sent, List<TokenEvent> received), required TResult approveToken(int timestamp, String id, String name, String? txHash, String status, int? blockNumber, String userOpHash, String description, List<TokenEvent> sent, List<TokenEvent> received), required TResult stakeTokens(int timestamp, String id, String name, String? txHash, String status, int? blockNumber, String userOpHash, String description, List<TokenEvent> sent, List<TokenEvent> received), required TResult unstakeTokens(int timestamp, String id, String name, String? txHash, String status, int? blockNumber, String userOpHash, String description, List<TokenEvent> sent, List<TokenEvent> received)})
→ TResult
-
inherited
-
whenOrNull<TResult extends Object?>({TResult? batchTransaction(int timestamp, String id, String name, String? txHash, String status, int? blockNumber, String userOpHash, String description, List<TokenEvent> sent, List<TokenEvent> received)?, TResult? tokenTransfer(int timestamp, String id, String name, String? txHash, String userOpHash, String status, int? blockNumber, String description, List<TokenEvent> sent, List<TokenEvent> received)?, TResult? tokenReceive(int timestamp, String id, String name, String? txHash, String? userOpHash, String status, int? blockNumber, String description, List<TokenEvent> sent, List<TokenEvent> received)?, TResult? nftReceive(int timestamp, String id, String name, String? txHash, String? userOpHash, String status, int? blockNumber, String description, List<TokenEvent> sent, List<TokenEvent> received)?, TResult? swapTokens(int timestamp, String id, String name, String? txHash, String status, int? blockNumber, String userOpHash, String description, List<TokenEvent> sent, List<TokenEvent> received)?, TResult? nftTransfer(int timestamp, String id, String name, String? txHash, String status, int? blockNumber, String userOpHash, String description, List<TokenEvent> sent, List<TokenEvent> received)?, TResult? approveToken(int timestamp, String id, String name, String? txHash, String status, int? blockNumber, String userOpHash, String description, List<TokenEvent> sent, List<TokenEvent> received)?, TResult? stakeTokens(int timestamp, String id, String name, String? txHash, String status, int? blockNumber, String userOpHash, String description, List<TokenEvent> sent, List<TokenEvent> received)?, TResult? unstakeTokens(int timestamp, String id, String name, String? txHash, String status, int? blockNumber, String userOpHash, String description, List<TokenEvent> sent, List<TokenEvent> received)?})
→ TResult?
-
inherited