You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
629B

  1. part of 'login_bloc.dart';
  2. class LoginState extends Equatable {
  3. const LoginState({
  4. this.status = FormzStatus.pure,
  5. this.username = const Username.pure(),
  6. this.password = const Password.pure(),
  7. });
  8. final FormzStatus status;
  9. final Username username;
  10. final Password password;
  11. LoginState copyWith({
  12. FormzStatus status,
  13. Username username,
  14. Password password,
  15. }) {
  16. return LoginState(
  17. status: status ?? this.status,
  18. username: username ?? this.username,
  19. password: password ?? this.password,
  20. );
  21. }
  22. @override
  23. List<Object> get props => [status, username, password];
  24. }