maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult splToken(
    1. SplTokenProgramAccountData parsed
    )?,
  2. TResult token2022(
    1. SplTokenProgramAccountData parsed
    )?,
  3. TResult stake(
    1. StakeProgramAccountData parsed
    )?,
  4. TResult unsupported(
    1. Map<String, dynamic> parsed
    )?,
  5. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(SplTokenProgramAccountData parsed)? splToken,
  TResult Function(SplTokenProgramAccountData parsed)? token2022,
  TResult Function(StakeProgramAccountData parsed)? stake,
  TResult Function(Map<String, dynamic> parsed)? unsupported,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;