This commit is contained in:
2026-04-07 11:30:22 +02:00
parent 4bbd1edf48
commit 130780cbb8
20 changed files with 426 additions and 131 deletions

View File

@@ -0,0 +1,26 @@
part of 'auth_bloc.dart';
enum AuthStatus { initial, loading, success, failure }
class AuthState extends Equatable {
const AuthState({
required this.status,
this.error,
required this.isLoginMode,
});
final AuthStatus status;
final String? error;
final bool isLoginMode;
@override
List<Object?> get props => [status, error, isLoginMode];
AuthState copyWith({AuthStatus? status, String? error, bool? isLoginMode}) {
return AuthState(
status: status ?? this.status,
error: error,
isLoginMode: isLoginMode ?? this.isLoginMode,
);
}
}