maybeWhen<TResult extends Object?> method

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

Implementation

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