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