Font constructor

Font({
  1. required int size,
  2. required int lineHeight,
  3. FontWeight fontWeight = FontWeight.w400,
})

Implementation

Font({required int size, required int lineHeight, this.fontWeight = FontWeight.w400}) {
  this.size = size.toDouble();
  height = lineHeight.toDouble() / size;
}