notifyLoadStart method

void notifyLoadStart(
  1. InAppWebViewController controller,
  2. Uri? url
)

Implementation

void notifyLoadStart(InAppWebViewController controller, Uri? url) {
  state = state.copyWith(
    controller: WebViewStateProp(controller),
    // No need to reset the title if the url is the same
    title: url != state.url ? const WebViewStateProp(null) : null,
    url: WebViewStateProp(url),
    isVisible: const WebViewStateProp(false),
    progress: const WebViewStateProp(0.05),
  );
}