getEmbedWebViewAuto function

Widget getEmbedWebViewAuto(
  1. String srcDoc, [
  2. double? width,
  3. double? height
])

conditional import Only in this way, we can use android/ios and flutter web library in the same project. inspired by https://github.com/Zeruel92/cross_picker https://medium.com/flutter-community/conditional-imports-across-flutter-and-web-4b88885a886e

Implementation

Widget getEmbedWebViewAuto(String srcDoc, [double? width, double? height]) {
  return getEmbedWebView(srcDoc, width, height);
}