notifyTitleChanged method
- InAppWebViewController controller,
- String? title
Implementation
void notifyTitleChanged(InAppWebViewController controller, String? title) {
state = state.copyWith(
controller: WebViewStateProp(controller),
// Avoid updating the title if it's the same as the current url
title: title != state.url.toString() ? WebViewStateProp(title) : null,
);
}