CalculateIsolineCallback typedef - routing library - Dart API
CalculateIsolineCallback
CalculateIsolineCallback typedef
A function which is called by the RoutingEngine after isoline calculation has completed.
It is always called on the main thread.
The first argument is the error in case of a failure. It is null for an operation that succeeds.
The second argument holds a list of calculated isolines. The list is null in case of an error.
The size of the list matches the size of the provided sdk.routing.IsolineOptions.range_values:
For each range limit, one isoline is calculated.
-
routingErrorThe error in case of a failure. It isnullfor an operation that succeeds. -
isolinesHolds a list of calculated isolines. The list isnullin case of an error.
Implementation
typedef CalculateIsolineCallback = void Function(RoutingError? routingError, List<Isoline>? isolines);