maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult success(
    1. T data
    )?,
  2. TResult failure(
    1. String error
    )?,
  3. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(T data)? success,
  TResult Function(String error)? failure,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;