currentLocationIndex property

int currentLocationIndex

The index of the item in the location collection that provides the current location.

You can get this value to find which item in the SimulatedLocationDataSource.locations collection represents the current location. You can also provide a new index to skip to a different location in the collection.

Implementation

int get currentLocationIndex {
  return _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_SimulatedLocationDataSource_getCurrentLocationIndex(
        _handle, errorHandler);
  });
}
void currentLocationIndex=(int value)

Implementation

set currentLocationIndex(int value) {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_SimulatedLocationDataSource_setCurrentLocationIndex(
        _handle, value, errorHandler);
  });
}