copyWith method

AppState copyWith({
  1. PackageInfo? packageInfo,
  2. UserProfileResponse? userProfileResponse,
  3. bool? userProfileFetched,
  4. 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,
  );
}