close method

void close()

Closes a GeoPackage.

Before you close a GeoPackage you should remove all references to the data it contains, such as removing the feature layer from a map and releasing the GeoPackageFeatureTable. Attempts to access a GeoPackage after it is closed will fail, resulting in an error.

After closing a GeoPackage, the underlying files it references can be deleted or moved.

Implementation

void close() {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_GeoPackage_close(_handle, errorHandler);
  });
}