exitFullScreen static method

Future<void> exitFullScreen()

Exit full screen

Implementation

static Future<void> exitFullScreen() async {
  if (Platform.isIOS) {
    SystemChrome.setEnabledSystemUIOverlays(SystemUiOverlay.values);
  } else if (Platform.isAndroid) {
    try {
      await _channel.invokeMethod('exitFullScreen');
    } catch (e) {
      print(e);
    }
  }
}