FontSize.percent constructor

FontSize.percent(
  1. double percent
)

A percentage of the parent style's font size.

Implementation

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