createDomain method
- DomainDescription domainDescription
Creates a new domain in the geodatabase.
You can create a new domain in a mobile geodatabase that was created in ArcGIS Pro or using Geodatabase.create. The domain description can be a CodedValueDomainDescription or a RangeDomainDescription.
In terms of the domain description, the DomainDescription.name must not exist in the geodatabase and DomainDescription.fieldType must be valid. See DomainDescription, for additional constraints.
Parameters:
domainDescription
— The description of the domain to create.
Return Value: A Future that returns a Domain if one was able to be created.
Implementation
Future<Domain> createDomain(
DomainDescription domainDescription,
) {
return _createDomain(domainDescription).then((domain) {
_domains.invalidateCache();
return domain;
});
}