toggleControlsVisibility method

void toggleControlsVisibility(
  1. bool isVisible
)

Internal method, used to trigger CONTROLS_VISIBLE or CONTROLS_HIDDEN event once controls state changed.

Implementation

void toggleControlsVisibility(bool isVisible) {
  _postEvent(isVisible
      ? PipFlutterPlayerEvent(PipFlutterPlayerEventType.controlsVisible)
      : PipFlutterPlayerEvent(PipFlutterPlayerEventType.controlsHiddenEnd));
}