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