Created
August 26, 2019 16:27
-
-
Save trongdth/1afc014aaff3d7b3e02fc30c57ddf381 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 SignupState extends Equatable{ | |
SignupState([List props = const[]]) : super([props]); | |
} | |
class SignupInitial extends SignupState { | |
@override | |
String toString() => 'SignupInitial'; | |
} | |
class SignupLoading extends SignupState { | |
@override | |
String toString() => 'SignupLoading'; | |
} | |
class SignupFailure extends SignupState { | |
final String error; | |
SignupFailure({@required this.error}) : super([error]); | |
@override | |
String toString() => 'SignupFailure { error: $error }'; | |
} | |
class SignupSuccess extends SignupState { | |
@override | |
String toString() => 'SignupSuccess'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment