setSp method
字体大小适配方法
fontSize
UI设计上字体的大小,单位dp. Font size adaptation methodfontSize
The size of the font on the UI design, in dp.
Implementation
double setSp(num fontSize) =>
fontSizeResolver?.call(fontSize, _instance) ?? fontSize * scaleText;