whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult api(
    1. String? message
    )?,
  2. TResult unknown(
    1. String? message
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult Function(String? message)? api,
  TResult Function(String? message)? unknown,
}) =>
    throw _privateConstructorUsedError;