CalculateIsolineCallback typedef

CalculateIsolineCallback = void Function(RoutingError? routingError, List<Isoline>? isolines)

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.

  • routingError The error in case of a failure. It is null for an operation that succeeds.

  • isolines Holds a list of calculated isolines. The list is null in case of an error.

Implementation

typedef CalculateIsolineCallback = void Function(RoutingError? routingError, List<Isoline>? isolines);