push method

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

Implementation

@override
Future<void> push(ILatLng latLng) async {
  if (_isActiveTrip) {
    if (!_isMultipointAnimation) {
      description.push(latLng);
      await _forward();
    } else if (description.length >= description.purgeLimit) {
      _isMultipointAnimation = true;
      var temp = description.values;
      description.clear();
      animatePoints(temp, last: latLng);
    }
  }
}