setSp method

double setSp(
  1. num fontSize, {
  2. bool? allowFontScalingSelf,
})

Font size adaptation method

Implementation

double setSp(num fontSize, {bool? allowFontScalingSelf}) =>
    allowFontScalingSelf == null
        ? (allowFontScaling
        ? (fontSize * scaleText) * _textScaleFactor
        : (fontSize * scaleText))
        : (allowFontScalingSelf
        ? (fontSize * scaleText) * _textScaleFactor
        : (fontSize * scaleText));