enableScale static method

void enableScale({
  1. bool enableWH()?,
  2. bool enableText()?,
})

Enable scale

if the enableWH return false, the width and the height scale ratio will be 1 if the enableText return false, the text scale ratio will be 1

Implementation

static void enableScale({bool Function()? enableWH, bool Function()? enableText}) {
  _enableScaleWH = enableWH ?? () => true;
  _enableScaleText = enableText ?? () => true;
}