maybeWhen<TResult extends Object?> method
TResult
maybeWhen<TResult extends Object?>({
- TResult empty()?,
- TResult loading()?,
- TResult user(
- UserModel? userModel
- TResult error(
- String? error
- 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;