textStyle property
A callback to map between a font family specified in the json animation with the font family in your assets. This is useful either if:
- the name of the font in your asset doesn't match the one in the json file.
- you want to use an other font than the one declared in the json
If the callback is null, the font family from the json is used as it.
Given an object containing the font family and style specified in the json
return a configured TextStyle
that will be used as the base style when
painting the text.
Implementation
final TextStyle Function(LottieFontStyle)? textStyle;