copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
LanguagePackInfo copyWith({
String? id,
String? baseLanguagePackId,
String? name,
String? nativeName,
String? pluralCode,
bool? isOfficial,
bool? isRtl,
bool? isBeta,
bool? isInstalled,
int? totalStringCount,
int? translatedStringCount,
int? localStringCount,
String? translationUrl,
dynamic extra,
int? clientId,
}) =>
LanguagePackInfo(
id: id ?? this.id,
baseLanguagePackId: baseLanguagePackId ?? this.baseLanguagePackId,
name: name ?? this.name,
nativeName: nativeName ?? this.nativeName,
pluralCode: pluralCode ?? this.pluralCode,
isOfficial: isOfficial ?? this.isOfficial,
isRtl: isRtl ?? this.isRtl,
isBeta: isBeta ?? this.isBeta,
isInstalled: isInstalled ?? this.isInstalled,
totalStringCount: totalStringCount ?? this.totalStringCount,
translatedStringCount:
translatedStringCount ?? this.translatedStringCount,
localStringCount: localStringCount ?? this.localStringCount,
translationUrl: translationUrl ?? this.translationUrl,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);