isWebviewAvailable static method

Future<bool> isWebviewAvailable()

Check if WebView runtime is available on the current devices.

Implementation

static Future<bool> isWebviewAvailable() async {
  if (Platform.isWindows) {
    final ret = await _channel.invokeMethod<bool>('isWebviewAvailable');
    return ret == true;
  }
  return true;
}