onFullScreenSwitch method
打开或关闭全屏
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);
}
}