Skip to content

Instantly share code, notes, and snippets.

@red-star25
Created January 8, 2022 08:40
Show Gist options
  • Save red-star25/d233c0d54efedd1c6bb09aca71337c54 to your computer and use it in GitHub Desktop.
Save red-star25/d233c0d54efedd1c6bb09aca71337c54 to your computer and use it in GitHub Desktop.
part of 'auth_bloc.dart';
abstract class AuthEvent extends Equatable {
@override
List<Object> get props => [];
}
// When the user signing in with email and password this event is called and the [AuthRepository] is called to sign in the user
class SignInRequested extends AuthEvent {
final String email;
final String password;
SignInRequested(this.email, this.password);
}
// When the user signing up with email and password this event is called and the [AuthRepository] is called to sign up the user
class SignUpRequested extends AuthEvent {
final String email;
final String password;
SignUpRequested(this.email, this.password);
}
// When the user signing in with google this event is called and the [AuthRepository] is called to sign in the user
class GoogleSignInRequested extends AuthEvent {}
// When the user signing out this event is called and the [AuthRepository] is called to sign out the user
class SignOutRequested extends AuthEvent {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment