copyWith method
AppInfo
copyWith({
- String? name,
- Uint8List? icon,
- String? packageName,
- String? versionName,
- int? versionCode,
- PlatformType? platformType,
- int? installedTimestamp,
- bool? isSystemApp,
- bool? isLaunchableApp,
- 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,
);
}