when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult empty(),
  2. required TResult loading(),
  3. required TResult user(
    1. UserModel? userModel
    ),
  4. required TResult error(
    1. 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;