whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? account(
    1. SplTokenAccountDataInfo info,
    2. String type,
    3. String? accountType
    )?,
  2. TResult? mint(
    1. MintAccountDataInfo info,
    2. String type,
    3. String? accountType
    )?,
  3. TResult? unknown(
    1. String type
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function(
          SplTokenAccountDataInfo info, String type, String? accountType)?
      account,
  TResult? Function(
          MintAccountDataInfo info, String type, String? accountType)?
      mint,
  TResult? Function(String type)? unknown,
}) =>
    throw _privateConstructorUsedError;