disableController method

void disableController(
  1. bool disable
)

Disable the video controller.

This method will disable the video controller.

If disable is true, the controller will be disabled. If disable is false, the controller will be enabled.

The controller cannot be interacted with while it is disabled.

Implementation

void disableController(bool disable) {
  setState(() {
    _isControllerDisabled = disable;
  });
}