removeDataSource static method

void removeDataSource()

Removes the active position data source and stops delivering new samples.

After calling this method the PositionService will not provide new positions until a new data source is selected (for example via setLiveDataSource or setExternalDataSource).

Also see:

Implementation

static void removeDataSource() {
  GemKitPlatform.instance.callObjectMethod(<String, Object>{
    'id': 0,
    'class': 'PositionService',
    'method': 'selectPositionDataSource',
    'senseDataSourceType': 'none',
  });
}