maybeWhen<TResult extends Object?> method

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

Implementation

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