when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult system(
    1. String programId,
    2. ParsedSystemInstruction parsed
    ),
  2. required TResult splToken(
    1. ParsedSplTokenInstruction parsed
    ),
  3. required TResult memo(
    1. String? memo
    ),
  4. required TResult unsupported(
    1. String? program
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(String programId, ParsedSystemInstruction parsed)
      system,
  required TResult Function(ParsedSplTokenInstruction parsed) splToken,
  required TResult Function(@JsonKey(name: 'parsed') String? memo) memo,
  required TResult Function(String? program) unsupported,
}) =>
    throw _privateConstructorUsedError;