Files
be_happy_public/lib/presentation/state/profile_state.dart
Polyanka 182be1049b some fix
# Conflicts:
#	lib/presentation/navigation/app_router.dart
#	pubspec.yaml
2026-08-11 00:23:16 +03:00

30 lines
603 B
Dart

import '../../domain/entities/user_profile.dart';
class ProfileState {
final bool isLoading;
final UserProfile? profile;
final String? error;
const ProfileState({
required this.isLoading,
this.profile,
this.error,
});
factory ProfileState.initial() {
return const ProfileState(isLoading: true);
}
ProfileState copyWith({
bool? isLoading,
UserProfile? profile,
String? error,
}) {
return ProfileState(
isLoading: isLoading ?? this.isLoading,
profile: profile ?? this.profile,
error: error,
);
}
}