copyWith method

Localizations copyWith(
  1. {List<String>? supportedLanguageCodes,
  2. List<Label>? labels,
  3. List<Section>? children,
  4. String? name}
)

Implementation

Localizations copyWith({
  List<String>? supportedLanguageCodes,
  List<Label>? labels,
  List<Section>? children,
  String? name,
}) {
  return Localizations(
    supportedLanguageCodes:
        supportedLanguageCodes ?? this.supportedLanguageCodes,
    labels: labels ?? this.labels,
    children: children ?? this.children,
    name: name ?? this.name,
  );
}