fontFamily property Null safety

String? fontFamily
final

The name of the font to use when painting the text (e.g., Roboto).

If the font is defined in a package, this will be prefixed with 'packages/package_name/' (e.g. 'packages/cool_fonts/Roboto'). The prefixing is done by the constructor when the package argument is provided.

The value provided in fontFamily will act as the preferred/first font family that glyphs are looked for in, followed in order by the font families in fontFamilyFallback. When fontFamily is null or not provided, the first value in fontFamilyFallback acts as the preferred/first font family. When neither is provided, then the default platform font will be used.

Implementation

final String? fontFamily;