load method

Future<void> load(
  1. String url, [
  2. Map<String, String>? requestHeaders
])

Loads the report file from the specified URL.

Implementation

Future<void> load(String url, [Map<String, String>? requestHeaders]) async {
  WebViewController apiController = await controller.future;
  await apiController.runJavascript(
      "flexmonster.load('$url'${requestHeaders == null ? "" : ",${jsonEncode(requestHeaders)}"})");
}