TokenAccountData class abstract

Implemented types

Constructors

TokenAccountData({required SplTokenAccountDataInfo info, required String type, String? accountType})
const
factory
TokenAccountData.fromJson(Map<String, dynamic> json)
factory

Properties

accountType String?
no setter
copyWith → _$$TokenAccountDataImplCopyWith<_$TokenAccountDataImpl>
no setter
hashCode int
The hash code for this object.
no setterinherited
info SplTokenAccountDataInfo
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
no setter

Methods

map<TResult extends Object?>({required TResult account(TokenAccountData value), required TResult mint(MintAccountData value), required TResult unknown(UnknownAccountData value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? account(TokenAccountData value)?, TResult? mint(MintAccountData value)?, TResult? unknown(UnknownAccountData value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult account(TokenAccountData value)?, TResult mint(MintAccountData value)?, TResult unknown(UnknownAccountData value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult account(SplTokenAccountDataInfo info, String type, String? accountType)?, TResult mint(MintAccountDataInfo info, String type, String? accountType)?, TResult unknown(String type)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult account(SplTokenAccountDataInfo info, String type, String? accountType), required TResult mint(MintAccountDataInfo info, String type, String? accountType), required TResult unknown(String type)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? account(SplTokenAccountDataInfo info, String type, String? accountType)?, TResult? mint(MintAccountDataInfo info, String type, String? accountType)?, TResult? unknown(String type)?}) → TResult?
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited