Created
August 26, 2019 16:22
-
-
Save trongdth/19ff7ce33a35a4980ecadb3c0b7de2bb 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:meta/meta.dart'; | |
abstract class LoginState extends Equatable{ | |
LoginState([List props = const[]]) : super([props]); | |
} | |
class LoginInitial extends LoginState { | |
@override | |
String toString() => 'LoginInitial'; | |
} | |
class LoginLoading extends LoginState { | |
@override | |
String toString() => 'LoginLoading'; | |
} | |
class LoginFailure extends LoginState { | |
final String error; | |
LoginFailure({@required this.error}) : super([error]); | |
@override | |
String toString() => 'LoginFailure { error: $error }'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment