DisplayNamesOptions constructor

DisplayNamesOptions({
  1. RelativeTimeFormatLocaleMatcher? localeMatcher,
  2. RelativeTimeFormatStyle? style,
  3. DisplayNamesType? type,
  4. DisplayNamesLanguageDisplay? languageDisplay,
  5. DisplayNamesFallback? fallback,
})

Implementation

factory DisplayNamesOptions({
  _i3.RelativeTimeFormatLocaleMatcher? localeMatcher,
  _i3.RelativeTimeFormatStyle? style,
  _i3.DisplayNamesType? type,
  _i3.DisplayNamesLanguageDisplay? languageDisplay,
  _i3.DisplayNamesFallback? fallback,
}) =>
    DisplayNamesOptions._(
      localeMatcher: localeMatcher?.name ?? _i4.undefined,
      style: style?.name ?? _i4.undefined,
      type: type?.name ?? _i4.undefined,
      languageDisplay: languageDisplay?.name ?? _i4.undefined,
      fallback: fallback?.name ?? _i4.undefined,
    );