Skip to content

Instantly share code, notes, and snippets.

@trongdth
Created August 26, 2019 16:27
Show Gist options
  • Save trongdth/c135ca52b42f4067263023f17bab85c9 to your computer and use it in GitHub Desktop.
Save trongdth/c135ca52b42f4067263023f17bab85c9 to your computer and use it in GitHub Desktop.
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