when<TResult extends Object?> method

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

Implementation

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