Created
August 26, 2019 16:18
-
-
Save trongdth/68c7c652a325688a176062e3125cffd1 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'; | |
import 'package:parse_server_sdk/parse_server_sdk.dart'; | |
abstract class AuthenticationEvent extends Equatable { | |
AuthenticationEvent([List props = const []]) : super(props); | |
} | |
class AppStarted extends AuthenticationEvent { | |
@override | |
String toString() => 'AppStarted'; | |
} | |
class LoggedIn extends AuthenticationEvent { | |
final ParseUser user; | |
LoggedIn({this.user}) : super([user]); | |
@override | |
String toString() => 'LoggedIn: $user.name'; | |
} | |
class LoggedOut extends AuthenticationEvent { | |
@override | |
String toString() => 'LoggedOut'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment