FontVariation.weight constructor
- double value
Variable font weight. (wght)
Applications should avoid using this and should instead declare font weight by specifying a FontWeight, which will implicitly set this attribute. However, if a value is provided for this attribute, then it will override the FontWeight.
Varies the stroke thickness of the font.
Values must be in the range 1..1000, and are to be interpreted in a manner
consistent with the values of FontWeight. For instance, 400 is the
"normal" weight, and 700 is "bold".
See also:
Implementation
const FontVariation.weight(this.value) : assert(value >= 1), assert(value <= 1000), axis = 'wght';