whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<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
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<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,
}) =>
    throw _privateConstructorUsedError;