newNavigator method

Navigator newNavigator({
  1. required Window window,
})

Constructs new Navigator object.

This method enables developers to override the default Navigator implementation.

Implementation

Navigator newNavigator({
  required Window window,
}) {
  return impl.newNavigator(
    window: window,
  );
}