VisualNavigator.withNavigator constructor

VisualNavigator.withNavigator(
  1. NavigatorInterface navigator
)

Creates a new instance of this class using provided instance of NavigatorInterface as source of data.

Note: The VisualNavigator implements the NavigatorInterface interface and forwards all calls to the underlying NavigatorInterface instance. When multiple VisualNavigator instances share the same NavigatorInterface instance, method calls on this common instance will overwrite changes made by another, which may lead to unexpected behavior.

Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process.

  • navigator A NavigatorInterface implementation instance.

Throws InstantiationException. InstantiationException when operation fails.

Implementation

factory VisualNavigator.withNavigator(NavigatorInterface navigator) => $prototype.withNavigator(navigator);