deleteDomain method

Future<void> deleteDomain(
  1. {required String domainName}
)

Deletes the domain with the specified name from the geodatabase.

Deleting domains is only supported in mobile geodatabases (either created in Pro or via Geodatabase.create). The domain with the specified name must exist in the geodatabase. The domain must not be in use by any fields in existing tables.

Parameters:

  • domainName — The name of the domain to delete.

Return Value: A Future with no return value. If there is no error, the domain was deleted successfully.

Implementation

Future<void> deleteDomain({required String domainName}) {
  return _deleteDomain(domainName: domainName)
      .then((_) => _domains.invalidateCache());
}