AngularUnit constructor

AngularUnit(
  1. {required AngularUnitId unitId}
)

Creates a unit given its known id.

Parameters:

  • unitId — The known id of the unit.

Implementation

factory AngularUnit({required AngularUnitId unitId}) {
  _initializeArcGISEnvironmentIfNeeded();
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_AngularUnit_create(unitId.coreValue, errorHandler);
  });
  return AngularUnit._withHandle(handle);
}