ParsedSystemInstruction class sealed

An instruction that is part if a ParsedInstruction

Available extensions
Annotations
  • @Freezed.new(unionKey: 'type', fallbackUnion: 'unsupported')

Constructors

ParsedSystemInstruction.fromJson(Map<String, dynamic> json)
factory
ParsedSystemInstruction.transfer({required ParsedSystemTransferInformation info, required String type})
Transfer instruction data for a transfer of info.lamports from info.source to info.destination.
const
factory
ParsedSystemInstruction.transferChecked({required ParsedSystemTransferInformation info, required String type})
Transfer instruction data for a transfer of info.lamports from info.source to info.destination.
const
factory
ParsedSystemInstruction.unsupported({required String type})
Instructions that we haven't implemented yet.
const
factory

Properties

copyWith → $ParsedSystemInstructionCopyWith<ParsedSystemInstruction>
Create a copy of ParsedSystemInstruction with the given fields replaced by the non-null parameter values.
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 transfer(ParsedSystemTransferInstruction value), required TResult transferChecked(ParsedSystemTransferCheckedInstruction value), required TResult unsupported(ParsedSystemUnsupportedInstruction value)}) → TResult

Available on ParsedSystemInstruction, provided by the ParsedSystemInstructionPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>({TResult? transfer(ParsedSystemTransferInstruction value)?, TResult? transferChecked(ParsedSystemTransferCheckedInstruction value)?, TResult? unsupported(ParsedSystemUnsupportedInstruction value)?}) → TResult?

Available on ParsedSystemInstruction, provided by the ParsedSystemInstructionPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>({TResult transfer(ParsedSystemTransferInstruction value)?, TResult transferChecked(ParsedSystemTransferCheckedInstruction value)?, TResult unsupported(ParsedSystemUnsupportedInstruction value)?, required TResult orElse()}) → TResult

Available on ParsedSystemInstruction, provided by the ParsedSystemInstructionPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>({TResult transfer(ParsedSystemTransferInformation info, String type)?, TResult transferChecked(ParsedSystemTransferInformation info, String type)?, TResult unsupported(String type)?, required TResult orElse()}) → TResult

Available on ParsedSystemInstruction, provided by the ParsedSystemInstructionPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this ParsedSystemInstruction to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult transfer(ParsedSystemTransferInformation info, String type), required TResult transferChecked(ParsedSystemTransferInformation info, String type), required TResult unsupported(String type)}) → TResult

Available on ParsedSystemInstruction, provided by the ParsedSystemInstructionPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>({TResult? transfer(ParsedSystemTransferInformation info, String type)?, TResult? transferChecked(ParsedSystemTransferInformation info, String type)?, TResult? unsupported(String type)?}) → TResult?

Available on ParsedSystemInstruction, provided by the ParsedSystemInstructionPatterns extension

A variant of when that fallback to returning null

Operators

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