LinearUnit constructor

LinearUnit({
  1. 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);
}