whenOrNull<TResult extends Object?> method
TResult?
whenOrNull<TResult extends Object?>({
- TResult? empty()?,
- TResult? loading()?,
- TResult? user(
- UserModel? userModel
- TResult? error(
- String? error
inherited
Implementation
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
TResult? Function()? empty,
TResult? Function()? loading,
TResult? Function(UserModel? userModel)? user,
TResult? Function(String? error)? error,
}) =>
throw _privateConstructorUsedError;