LinearUnit.fromAreaUnit constructor
- AreaUnit areaUnit
Creates a linear unit given an area unit.
Creates a unit given an area unit.
Parameters:
areaUnit
— The area unit.
Implementation
factory LinearUnit.fromAreaUnit(AreaUnit areaUnit) {
_initializeArcGISEnvironmentIfNeeded();
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_LinearUnit_createFromAreaUnit(
areaUnit._handle, errorHandler);
});
return LinearUnit._withHandle(handle);
}