setControlsEnabled method

void setControlsEnabled(
  1. bool enabled
)

Enable/disable controls (when enabled = false, controls will be always hidden)

Implementation

void setControlsEnabled(bool enabled) {
  if (!enabled) {
    _controlsVisibilityStreamController.add(false);
  }
  _controlsEnabled = enabled;
}