PolylineSimplificationCallback typedef

PolylineSimplificationCallback = void Function(PolylineSimplificationError? queryError, List<GeoCoordinates>? result)

The method will be called on the main thread when PolylineSimplifier.simplify is finished.

  • queryError The optional error, which occurred during simplification.

  • result The simplified polyline with number of points less or equal to the input polyline of PolylineSimplifier.simplify.

Implementation

typedef PolylineSimplificationCallback = void Function(PolylineSimplificationError? queryError, List<GeoCoordinates>? result);