2026-08-05 12:00:49 -07:00
|
|
|
import 'package:flutter/foundation.dart';
|
|
|
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
2024-11-26 12:43:44 -06:00
|
|
|
|
2026-08-05 12:00:49 -07:00
|
|
|
part 'auth_state.model.freezed.dart';
|
2022-02-03 10:06:44 -06:00
|
|
|
|
2026-08-05 12:00:49 -07:00
|
|
|
@freezed
|
|
|
|
|
abstract class AuthState with _$AuthState {
|
|
|
|
|
const factory AuthState({
|
|
|
|
|
required String deviceId,
|
|
|
|
|
required String userId,
|
|
|
|
|
required String userEmail,
|
|
|
|
|
required bool isAuthenticated,
|
|
|
|
|
required String name,
|
|
|
|
|
required bool isAdmin,
|
|
|
|
|
required String profileImagePath,
|
|
|
|
|
}) = _AuthState;
|
2022-02-03 10:06:44 -06:00
|
|
|
}
|