onFullScreenSwitch method

Future<void> onFullScreenSwitch(
  1. BuildContext context
)
inherited

打开或关闭全屏

Turn full screen on or off

Implementation

Future<void> onFullScreenSwitch(BuildContext context) async {
  if (isFullScreen) {
    customFullScreen!.close(context, this as VideoController);
  } else {
    _setFullScreen(true);
    await customFullScreen!.open(context, this as VideoController);
    _setFullScreen(false);
  }
}