on method

void on({
  1. bool isLock = true,
})

Turn on the controller.

If isLock is true, the screen will be locked after turning on.

Implementation

void on({bool isLock = true}) {
  _on = true;

  if (isLock) lock();
}