setSp method

double setSp(
  1. num fontSize
)

字体大小适配方法

  • fontSize UI设计上字体的大小,单位dp. Font size adaptation method
  • fontSize The size of the font on the UI design, in dp.

Implementation

double setSp(num fontSize) =>
    fontSizeResolver?.call(fontSize, _instance) ?? fontSize * scaleText;