* chore(mobile): example freezed implementation on some models * Don't commit Freezed generated code * Freezed easy pass * Formatting fix * Generate Flutter debugging info
18 lines
460 B
Dart
18 lines
460 B
Dart
import 'package:flutter/foundation.dart';
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
part 'auth_state.model.freezed.dart';
|
|
|
|
@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;
|
|
}
|