custom static method

FontSize custom(
  1. double value,
  2. Unit unit
)

Implementation

static FontSize custom(double value, Unit unit) {
  return FontSize(roundPixels(value, unit));
}