Last active
October 16, 2025 06:50
-
-
Save felangel/fc528a53037bcd15f890dee8f6e016b0 to your computer and use it in GitHub Desktop.
[flutter_login] Login Event
This file contains hidden or 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
| import 'package:meta/meta.dart'; | |
| import 'package:equatable/equatable.dart'; | |
| abstract class LoginEvent extends Equatable { | |
| const LoginEvent(); | |
| } | |
| class LoginButtonPressed extends LoginEvent { | |
| final String username; | |
| final String password; | |
| const LoginButtonPressed({ | |
| @required this.username, | |
| @required this.password, | |
| }); | |
| @override | |
| List<Object> get props => [username, password]; | |
| @override | |
| String toString() => | |
| 'LoginButtonPressed { username: $username, password: $password }'; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bhai mere paas Paisa nhi h