Created
October 2, 2020 18:56
-
-
Save guilhermecarvalhocarneiro/a96c6846d990f740059cbe98efa115c0 to your computer and use it in GitHub Desktop.
State Cubit
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
part of 'cubit.dart'; | |
abstract class UsuarioState extends Equatable { | |
const UsuarioState(); | |
} | |
class UsuarioInitial extends UsuarioState { | |
@override | |
List<Object> get props => []; | |
} | |
class UsuarioProcessState extends UsuarioState { | |
@override | |
List<Object> get props => []; | |
} | |
class UsuarioSuccessState extends UsuarioState { | |
final String successMessage; | |
UsuarioSuccessState({ | |
this.successMessage, | |
}); | |
@override | |
List<Object> get props => []; | |
} | |
class UsuarioErrorState extends UsuarioState { | |
final String error; | |
UsuarioErrorState(this.error); | |
@override | |
List<Object> get props => [error]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment