This commit is contained in:
2026-04-06 10:55:56 +02:00
parent c6c61f1a31
commit 4930d25e58
15 changed files with 658 additions and 11 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,
);
}
}