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