MethodChannelWebviewWinFloating constructor

MethodChannelWebviewWinFloating()

Implementation

MethodChannelWebviewWinFloating() {
  // When hot-reload in debugging mode, clear all old webviews created before hot-reload
  methodChannel.invokeMethod<bool>('init');

  assert(() {
    // When hot-reload in debugging mode, skip the following code
    return true;
  }());

  initMethodCallHandler();
}