copyWith method

AppInfo copyWith({
  1. String? name,
  2. Uint8List? icon,
  3. String? packageName,
  4. String? versionName,
  5. int? versionCode,
  6. PlatformType? platformType,
  7. int? installedTimestamp,
  8. bool? isSystemApp,
  9. bool? isLaunchableApp,
  10. AppCategory? category,
})

Implementation

AppInfo copyWith({
  String? name,
  Uint8List? icon,
  String? packageName,
  String? versionName,
  int? versionCode,
  PlatformType? platformType,
  int? installedTimestamp,
  bool? isSystemApp,
  bool? isLaunchableApp,
  AppCategory? category,
}) {
  return AppInfo(
    name: name ?? this.name,
    icon: icon ?? this.icon,
    packageName: packageName ?? this.packageName,
    versionName: versionName ?? this.versionName,
    versionCode: versionCode ?? this.versionCode,
    platformType: platformType ?? this.platformType,
    installedTimestamp: installedTimestamp ?? this.installedTimestamp,
    isSystemApp: isSystemApp ?? this.isSystemApp,
    isLaunchableApp: isLaunchableApp ?? this.isLaunchableApp,
    category: category ?? this.category,
  );
}