style property

TextStyle? style
final

Color, weight, font family and the like. TextStyle.fontSize and TextStyle.letterSpacing are ignored: the text scales with the code, so they are size and letterSpacing. Without a color, the code's: its BarcodeStyle.color, or the first color of its gradient. Without a weight, bold.

A PNG export does not know the app's font: name a fontFamily (one the app bundles) to get it there. In an SVG the font is named; the program that shows the file picks the closest one it has.

Implementation

final TextStyle? style;