copyWith method
AppState
copyWith({
- PackageInfo? packageInfo,
- UserProfileResponse? userProfileResponse,
- bool? userProfileFetched,
- bool? isLoading,
Implementation
AppState copyWith({
PackageInfo? packageInfo,
UserProfileResponse? userProfileResponse,
bool? userProfileFetched,
bool? isLoading,
}) {
return AppState(
packageInfo: packageInfo ?? this.packageInfo,
userProfileResponse: userProfileResponse ?? this.userProfileResponse,
userProfileFetched: userProfileFetched ?? this.userProfileFetched,
isLoading: isLoading ?? this.isLoading,
);
}