whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult noConnection()?,
  2. TResult result(
    1. T result
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult Function()? noConnection,
  TResult Function(T result)? result,
}) =>
    throw _privateConstructorUsedError;