FontSize.percent constructor

FontSize.percent(
  1. int percent
)

A percentage of the parent style's font size.

Implementation

factory FontSize.percent(int percent) {
  return FontSize(percent.toDouble() / -100.0, units: "%");
}