close method

Future<void> close()

Close the Webview Will trigger the onDestroy event

Implementation

Future<void> close() async {
  _javascriptChannels.clear();
  await _channel.invokeMethod('close');
}