fontFamily property
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.
When running on Apple devices, the strings 'CupertinoSystemText' and 'CupertinoSystemDisplay' are used as proxies for the Apple system fonts. They currently redirect to the equivalent of SF Pro Text and SF Pro Display respectively. 'CupertinoSystemText' is designed for fonts below 20 point size, and 'CupertinoSystemDisplay' is recommended for sizes 20 and above. When used on non-Apple platforms, these strings will return the regular fallback font family instead.
Implementation
final String? fontFamily;