maybeWhen<TResult extends Object?> method

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

Implementation

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