destroyWindow static method

Future<void> destroyWindow()

Implementation

static Future<void> destroyWindow() async {
  if (kIsWeb) throw Exception('The method does not work in Flutter Web.');
  await _initIfRequired();
  await _channel.invokeMethod('destroyWindow');
}