push method

  1. @override
Future<void> push(
  1. ILatLng latLng
)
override

Implementation

@override
Future<void> push(ILatLng latLng) async {
  //debugPrint("Value: ${latLng.toLatLng} isActiveTrip: $_isActiveTrip: Length: ${description.length}");
  if (_isActiveTrip) {
    if (!_isMultipointAnimation) {
      description.push(latLng);
      await _forward();
    } else if (description.length > description.runExpressAfter) {
      _isMultipointAnimation = true;
      description.clear();
      animatePoints(last: latLng);
    }
  }
}