NavigationDelegate constructor
NavigationDelegate({
- void onPageStarted(
- String url
- void onPageFinished(
- String url
- void onProgress(
- int progress
- void onWebResourceError(
- WebResourceError error
- void onUrlChange(
- UrlChange change
Constructs a NavigationDelegate.
onUrlChange
: invoked when the underlying web view changes to a new url.
Implementation
NavigationDelegate({
FutureOr<NavigationDecision> Function(NavigationRequest request)?
onNavigationRequest,
void Function(String url)? onPageStarted,
void Function(String url)? onPageFinished,
void Function(int progress)? onProgress,
void Function(WebResourceError error)? onWebResourceError,
void Function(UrlChange change)? onUrlChange,
}) : this.fromPlatformCreationParams(
const PlatformNavigationDelegateCreationParams(),
onNavigationRequest: onNavigationRequest,
onPageStarted: onPageStarted,
onPageFinished: onPageFinished,
onProgress: onProgress,
onWebResourceError: onWebResourceError,
onUrlChange: onUrlChange,
);