fix settings
This commit is contained in:
13
lib/features/auth/presentation/providers/auth_state.dart
Normal file
13
lib/features/auth/presentation/providers/auth_state.dart
Normal file
@@ -0,0 +1,13 @@
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
import '../../domain/entities/user.dart';
|
||||
|
||||
part 'auth_state.freezed.dart';
|
||||
|
||||
@freezed
|
||||
class AuthState with _$AuthState {
|
||||
const factory AuthState.initial() = AuthStateInitial;
|
||||
const factory AuthState.loading() = AuthStateLoading;
|
||||
const factory AuthState.authenticated(User user) = AuthStateAuthenticated;
|
||||
const factory AuthState.unauthenticated([String? message]) = AuthStateUnauthenticated;
|
||||
const factory AuthState.error(String message) = AuthStateError;
|
||||
}
|
||||
Reference in New Issue
Block a user