selfFontScale method

double selfFontScale(
  1. num size, {
  2. bool allow = false,
})

Implementation

double selfFontScale(
  num size, {
  bool allow = false,
}) {
  if (!_systemFontScale && allow) {
    return size * _textScaleFactor;
  } else if (_systemFontScale && !allow) {
    return size / _textScaleFactor;
  }
  return size.toDouble();
}