scalarPixel method
Gives the font size in scalarPixels based on the input If allowtextScaling is set true it will returns a scalable font size If allowtextScaling is set false it will returns a non scalable font size
Implementation
double scalarPixel(num input) =>
allowtextScaling ? input * scale * textScaleFactor : input * scale;