setStops method

void setStops(
  1. List<Stop> stops
)

Sets stops.

Parameters:

  • stops — A List of Stop instances. Contents of the List are copied.

Implementation

void setStops(List<Stop> stops) {
  final coreStops = stops.toMutableArray(valueType: _ElementType.stop);
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_RouteParameters_setStops(
        _handle, coreStops._handle, errorHandler);
  });
}