Font constructor

const Font({
  1. num? size,
  2. List<String>? family,
  3. int? weight,
  4. String? style,
  5. String? variant,
  6. LineHeight? lineHeight,
})

Create a font using size of font in pixels, family name of font(s) using FontFamily, style of the font using FontStyle, variant using FontVariant, and lineHeight extra space (leading) around the font in pixels, if not specified it's 1.2 the font size.

Implementation

const Font(
    {this.size,
    this.family,
    this.weight,
    this.style,
    this.variant,
    this.lineHeight});