SplTokenProgramAccountData class

Implementers
Annotations
  • @Freezed(unionKey: 'type', fallbackUnion: 'unknown')

Constructors

SplTokenProgramAccountData.account({required SplTokenAccountDataInfo info, required String type, String? accountType})
const
factory
SplTokenProgramAccountData.fromJson(Map<String, dynamic> data)
factory
SplTokenProgramAccountData.mint({required MintAccountDataInfo info, required String type, String? accountType})
const
factory
SplTokenProgramAccountData.unknown({required String type})
const
factory

Properties

copyWith → $SplTokenProgramAccountDataCopyWith<SplTokenProgramAccountData>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
no setterinherited

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