RouteSimulator class
Constructors
-
RouteSimulator.new(List<
LatLng> listLatLng, TickerProvider vsync, {double speed = 0.001, bool repeat = false, Duration duration = const Duration(seconds: 10), dynamic onLocationChange(LatLng)?, double upperBound = 2.2, AnimationBehavior animationBehavior = AnimationBehavior.normal}) -
vsync from
TickerProviderStateMixin
class, used to init AnimationController
Properties
- duration ↔ Duration
-
getter/setter pair
- getAnimationController → dynamic
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- previousLatLng ↔ LatLng?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timer ↔ Timer?
-
getter/setter pair
Methods
-
addListener(
void listener(LatLng?, int?, double?)?) → void -
this function is deprecated and will be removed in the future,
use
addV2Listener
instead -
addV2Listener(
void listener(LatLng?, int?, double?, LatLng?)?) → void -
this function return current
LatLng
and a value that present if the animation is completed (1 time). Function(LatLng? currentLatLng, int? nearestIndex, double? distance) -
emit(
Feature< Point> ? pointFeature) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void -
start(
) → void -
stop(
) → void -
tick(
) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited