SimulationParameters class final

Parameters to control how locations are created from a simulated route of travel (Polyline).

This can be provided as an input to the SimulatedLocationDataSource.setLocationsWithPolyline method to specify the start time for the first location, travel velocity (meters per second), and horizontal and vertical accuracy of locations.

Implemented types

Constructors

SimulationParameters({DateTime? startTime, double speed = 10.0, double horizontalAccuracy = 0.0, double verticalAccuracy = 0.0})
Creates a SimulationParameters.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
horizontalAccuracy double
The horizontal accuracy to assign to generated locations.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speed double
Rate of travel, in meters per second.
getter/setter pair
startTime DateTime
Date and time of the first location. Each subsequent location will increment its timestamp by one second.
getter/setter pair
verticalAccuracy double
The vertical accuracy to assign to generated locations.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited