login
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
part of 'login_form_bloc.dart';
|
||||
|
||||
@freezed
|
||||
class LoginFormState with _$LoginFormState {
|
||||
const factory LoginFormState({
|
||||
required String email,
|
||||
required String password,
|
||||
required Option<Either<AuthFailure, Login>> failureOrLoginOption,
|
||||
@Default(false) bool isSubmitting,
|
||||
@Default(false) bool showErrorMessages,
|
||||
}) = _LoginFormState;
|
||||
|
||||
factory LoginFormState.initial() =>
|
||||
LoginFormState(email: '', password: '', failureOrLoginOption: none());
|
||||
}
|
||||
Reference in New Issue
Block a user