whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? persist(
    1. void onComplete()?
    )?,
  2. TResult? none(
    1. void onComplete()?
    )?,
  3. TResult? fail(
    1. String? message,
    2. void onFail()?
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function(void Function()? onComplete)? persist,
  TResult? Function(void Function()? onComplete)? none,
  TResult? Function(String? message, void Function()? onFail)? fail,
}) =>
    throw _privateConstructorUsedError;