NavigateEventInit constructor

NavigateEventInit({
  1. NavigationType? navigationType,
  2. NavigationDestination? destination,
  3. bool? canIntercept,
  4. bool? userInitiated,
  5. bool? hashChange,
  6. AbortSignal? signal,
  7. FormData? formData,
  8. String? downloadRequest,
  9. dynamic info,
})

Implementation

factory NavigateEventInit(
        {NavigationType? navigationType,
        NavigationDestination? destination,
        bool? canIntercept,
        bool? userInitiated,
        bool? hashChange,
        AbortSignal? signal,
        FormData? formData,
        String? downloadRequest,
        dynamic info}) =>
    NavigateEventInit._(
        navigationType: navigationType?.value ?? NavigationType.push.value,
        destination: destination ?? undefined,
        canIntercept: canIntercept ?? false,
        userInitiated: userInitiated ?? false,
        hashChange: hashChange ?? false,
        signal: signal ?? undefined,
        formData: formData ?? undefined,
        downloadRequest: downloadRequest ?? undefined,
        info: info ?? undefined);