maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult empty()?,
  2. TResult loading()?,
  3. TResult user(
    1. UserModel? userModel
    )?,
  4. TResult error(
    1. String? error
    )?,
  5. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function()? empty,
  TResult Function()? loading,
  TResult Function(UserModel? userModel)? user,
  TResult Function(String? error)? error,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;