-
-
Save red-star25/d233c0d54efedd1c6bb09aca71337c54 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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