FontWeight constructor
- int value
Creates a FontWeight object, which can be added to a TextStyle to select the thickness of a font's glyphs.
Implementation
const FontWeight(this.value)
: assert(value >= 1, 'Font weight must be between 1 and 1000'),
assert(value <= 1000, 'Font weight must be between 1 and 1000');