PolynomialLocationInterpolator<T extends ILatLng> constructor

PolynomialLocationInterpolator<T extends ILatLng>({
  1. required List<ILatLng> points,
})

Implementation

PolynomialLocationInterpolator({required this.points}) : super.warmUp() {
  if (points.isNotEmpty) {
    begin = points.first as T;
    end = points.last as T;
  } else {
    begin = ILatLng.empty() as T;
    end = ILatLng.empty() as T;
  }
}