setSp method

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

Font size adaptation method

Implementation

num setSp(num fontSize, {bool? allowFontScalingSelf}) => (allowFontScaling ||
        (allowFontScalingSelf ?? false))
    ? (fontSize * scaleText)
    : (fontSize * scaleText) / (_textScaler?.scale(fontSize.toDouble()) ?? 1);