Skip to content

Instantly share code, notes, and snippets.

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