setPlatformNavigationDelegate method
Sets the PlatformNavigationDelegate containing the callback methods that
are called during navigation events.
Implementation
@override
Future<void> setPlatformNavigationDelegate(
PlatformNavigationDelegate handler,
) async {
var delegate = handler as WindowsPlatformNavigationDelegate;
controller.setNavigationDelegate(
WinNavigationDelegate(
onNavigationRequest: delegate.onNavigationRequest,
onPageStarted: delegate.onPageStarted,
onPageFinished: delegate.onPageFinished,
onHttpError: delegate.onHttpError,
onSslAuthError: delegate.onSslAuthError,
onWebResourceError: delegate.onWebResourceError,
onUrlChange: delegate.onUrlChange,
),
);
}