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