Files
c_trans_mobile/lib/features/profile/presentation/bloc/profile_state.dart
jahongireshonqulov 1bf3e41abe Initial commit
2025-10-18 09:40:06 +05:00

33 lines
745 B
Dart

part of 'profile_bloc.dart';
class ProfileState extends Equatable {
const ProfileState({
required this.isLoading,
required this.readOnly,
this.profileData,
this.hasError,
});
final bool isLoading;
final bool readOnly;
final ProfileResponse? profileData;
final bool? hasError;
ProfileState copyWith({
bool? isLoading,
bool? readOnly,
ProfileResponse? profileData,
bool? hasError,
}) {
return ProfileState(
isLoading: isLoading ?? this.isLoading,
readOnly: readOnly ?? this.readOnly,
profileData: profileData ?? this.profileData,
hasError: hasError ?? this.hasError,
);
}
@override
List<Object?> get props => [isLoading, readOnly, profileData, hasError];
}