Created
August 26, 2019 16:22
-
-
Save trongdth/145dc9b7bf377fe474e47f3af5bf5d9e 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
import 'package:equatable/equatable.dart'; | |
abstract class LoginEvent extends Equatable { | |
LoginEvent([List props = const []]) : super(props); | |
} | |
class LoginButtonPressed extends LoginEvent { | |
final String username; | |
final String email; | |
final String password; | |
LoginButtonPressed({this.username, this.email, this.password}) : super([username, email, password]); | |
@override | |
String toString() => 'LoginButtonPressed { username: $username, email: $email, password: $password }'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment