Skip to content

Instantly share code, notes, and snippets.

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