copyWith method

DisplayNamesOptions copyWith({
  1. Style? style,
  2. LanguageDisplay? languageDisplay,
  3. Fallback? fallback,
  4. LocaleMatcher? localeMatcher,
})

Implementation

DisplayNamesOptions copyWith({
  Style? style,
  LanguageDisplay? languageDisplay,
  Fallback? fallback,
  LocaleMatcher? localeMatcher,
}) {
  return DisplayNamesOptions(
    style: style ?? this.style,
    languageDisplay: languageDisplay ?? this.languageDisplay,
    fallback: fallback ?? this.fallback,
    localeMatcher: localeMatcher ?? this.localeMatcher,
  );
}