fontFamily property Null safety

String? fontFamily

The name of the font to use when calculating the strut (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 will be searched for, followed in order by the font families in fontFamilyFallback. If all font families are exhausted and no match was found, the default platform font family will be used instead. Unlike TextStyle.fontFamilyFallback, the font does not need to contain the desired glyphs to match.


final String? fontFamily;