Created
August 20, 2020 12:09
-
-
Save guilhermecarvalhocarneiro/3ea416bb0c15e441da5e08b9ef3c52e8 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
part of 'usuario_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