Skip to content

Instantly share code, notes, and snippets.

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