FontVariation.weight constructor
const
FontVariation.weight(
- double value
Variable font weight. (wght
)
Varies the stroke thickness of the font, similar to FontWeight but on a continuous axis.
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';