forked from eatvio/eatvio_app
19 lines
428 B
Dart
19 lines
428 B
Dart
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
part 'auth_state.freezed.dart';
|
|
|
|
@freezed
|
|
abstract class AuthState with _$AuthState {
|
|
const factory AuthState() = _AuthState;
|
|
|
|
const factory AuthState.loading() = AuthStateLoading;
|
|
|
|
const factory AuthState.loaded({
|
|
required String token,
|
|
}) = AuthStateLoaded;
|
|
|
|
const factory AuthState.error({
|
|
required String errorMessage,
|
|
}) = AuthStateError;
|
|
}
|