ParsedInstruction class
An instruction which is part of a ParsedMessage
.
- Implemented types
- Implementers
- Annotations
-
- @Freezed(unionKey: 'program', fallbackUnion: 'unsupported')
Constructors
-
ParsedInstruction.fromJson(Map<
String, dynamic> json) -
factory
- ParsedInstruction.memo({@JsonKey(name: 'parsed') required String? memo})
-
Instruction representing a memo with content
memo
constfactory - ParsedInstruction.splToken({required ParsedSplTokenInstruction parsed})
-
constfactory
- ParsedInstruction.system({required String programId, required ParsedSystemInstruction parsed})
-
constfactory
- ParsedInstruction.unsupported({String? program})
-
Any instruction that we are not currently supporting.
constfactory
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 system(ParsedInstructionSystem value), required TResult splToken(ParsedInstructionSplToken value), required TResult memo(ParsedInstructionMemo value), required TResult unsupported(ParsedInstructionUnsupported value)}) → TResult -
inherited
-
mapOrNull<
TResult extends Object?> ({TResult? system(ParsedInstructionSystem value)?, TResult? splToken(ParsedInstructionSplToken value)?, TResult? memo(ParsedInstructionMemo value)?, TResult? unsupported(ParsedInstructionUnsupported value)?}) → TResult? -
inherited
-
maybeMap<
TResult extends Object?> ({TResult system(ParsedInstructionSystem value)?, TResult splToken(ParsedInstructionSplToken value)?, TResult memo(ParsedInstructionMemo value)?, TResult unsupported(ParsedInstructionUnsupported value)?, required TResult orElse()}) → TResult -
inherited
-
maybeWhen<
TResult extends Object?> ({TResult system(String programId, ParsedSystemInstruction parsed)?, TResult splToken(ParsedSplTokenInstruction parsed)?, TResult memo(String? memo)?, TResult unsupported(String? program)?, 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 system(String programId, ParsedSystemInstruction parsed), required TResult splToken(ParsedSplTokenInstruction parsed), required TResult memo(String? memo), required TResult unsupported(String? program)}) → TResult -
inherited
-
whenOrNull<
TResult extends Object?> ({TResult? system(String programId, ParsedSystemInstruction parsed)?, TResult? splToken(ParsedSplTokenInstruction parsed)?, TResult? memo(String? memo)?, TResult? unsupported(String? program)?}) → TResult? -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited