LocationSimulator.withRoute constructor

LocationSimulator.withRoute(
  1. Route route,
  2. LocationSimulatorOptions options
)

Creates a new instance of this class.

  • route The route to travel.

  • options The options to specify how the location simulator will behave.

Throws InstantiationException. Indicates what went wrong when the instantiation was attempted.

Implementation

factory LocationSimulator.withRoute(Route route, LocationSimulatorOptions options) => $prototype.withRoute(route, options);