FontFaceDescriptors constructor

FontFaceDescriptors({
  1. String? style,
  2. String? weight,
  3. String? stretch,
  4. String? unicodeRange,
  5. String? variant,
  6. String? featureSettings,
  7. String? variationSettings,
  8. String? display,
  9. String? ascentOverride,
  10. String? descentOverride,
  11. String? lineGapOverride,
})

Implementation

factory FontFaceDescriptors(
        {String? style,
        String? weight,
        String? stretch,
        String? unicodeRange,
        String? variant,
        String? featureSettings,
        String? variationSettings,
        String? display,
        String? ascentOverride,
        String? descentOverride,
        String? lineGapOverride}) =>
    FontFaceDescriptors._(
        style: style ?? 'normal',
        weight: weight ?? 'normal',
        stretch: stretch ?? 'normal',
        unicodeRange: unicodeRange ?? 'U+0-10FFFF',
        variant: variant ?? 'normal',
        featureSettings: featureSettings ?? 'normal',
        variationSettings: variationSettings ?? 'normal',
        display: display ?? 'auto',
        ascentOverride: ascentOverride ?? 'normal',
        descentOverride: descentOverride ?? 'normal',
        lineGapOverride: lineGapOverride ?? 'normal');