AreaUnit.fromLinearUnit constructor

AreaUnit.fromLinearUnit(
  1. LinearUnit linearUnit
)

Creates an area unit given a linear unit.

Creates a unit given a linear unit.

Parameters:

  • linearUnit — The linear unit.

Implementation

factory AreaUnit.fromLinearUnit(
  LinearUnit linearUnit,
) {
  _initializeArcGISEnvironmentIfNeeded();
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_AreaUnit_createFromLinearUnit(
      linearUnit._handle,
      errorHandler,
    );
  });
  return AreaUnit._withHandle(handle);
}