mirrored_repositories/flutterzon_bloc/lib/src/logic/blocs
part of 'auth_bloc.dart';

@immutable
sealed class AuthEvent extends Equatable {}

class TextFieldChangedEvent extends AuthEvent {
  final String nameValue;
  final String emailValue;
  final String passwordValue;

  TextFieldChangedEvent(this.nameValue, this.emailValue, this.passwordValue);

  @override
  List<Object?> get props => [nameValue, emailValue, passwordValue];
}

class CreateAccountPressedEvent extends AuthEvent {
  final String name;
  final String email;
  final String password;
  CreateAccountPressedEvent(this.name, this.email, this.password);

  @override
  List<Object?> get props => [name, email, password];
}

class SignInPressedEvent extends AuthEvent {
  final String email;
  final String password;

  SignInPressedEvent(this.email, this.password);
  @override
  List<Object?> get props => [email, password];
}
