AreaUnit constructor
- {required AreaUnitId unitId}
Creates a unit given its known id.
Parameters:
unitId
— The known id of the unit.
Implementation
factory AreaUnit({required AreaUnitId unitId}) {
_initializeArcGISEnvironmentIfNeeded();
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_AreaUnit_create(unitId.coreValue, errorHandler);
});
return AreaUnit._withHandle(handle);
}