SystemLocationDataSource constructor

SystemLocationDataSource()

Creates a system location data source.

Implementation

factory SystemLocationDataSource() {
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_LocationDataSource_create(errorHandler);
  });

  // Create the SystemLocationDataSource and add it to the LocationDataSource instance cache.
  final systemLds = SystemLocationDataSource._withHandle(handle);
  LocationDataSource._instanceCache.addInstance(systemLds);
  return systemLds;
}