loadContent abstract method

Future<void> loadContent(
  1. String content,
  2. SourceType sourceType, {
  3. Map<String, String>? headers,
  4. Object? body,
  5. bool fromAssets = false,
})

Set webview content to the specified content. Example: https://flutter.cn/ Example2: '

Hi

If fromAssets param is set to true, content param must be a String path to an asset Example: assets/some_url.txt

headers are optional HTTP headers.

body is only used on the WEB version, when clicking on a submit button in a form

Implementation

Future<void> loadContent(
  String content,
  SourceType sourceType, {
  Map<String, String>? headers,
  Object? body,
  bool fromAssets = false,
});