slowUI function

void slowUI({
  1. int slowFactor = 10,
})

Slows the UI sleep by slowFactor.

Implementation

void slowUI({int slowFactor = 10}) {
  _speedFactor = slowFactor.clamp(1, 100).toDouble();
  if (_speedFactor == 1) {
    print('** Fast UI');
  } else {
    print('** Slow UI: $_speedFactor');
  }
}