setControlsEnabled method
Enable/disable controls (when enabled = false, controls will be always hidden)
Implementation
void setControlsEnabled(bool enabled) {
if (!enabled) {
_controlsVisibilityStreamController.add(false);
}
_controlsEnabled = enabled;
}