onPageFinished method

  1. @override
void onPageFinished(
  1. String? url
)
override

Invoked when a page has finished loading.

This is invoked only for the main frame.

When onPageFinished is invoked on Android, the page being rendered may not be updated yet.

When invoked on iOS or Android, any Javascript code that is embedded directly in the HTML has been loaded and code injected with WebViewController.evaluateJavascript can assume this.

Implementation

@override
void onPageFinished(String? url) {
  _isFirstLoaded = true;
  dispatchEvent(Event(EVENT_LOAD));
}