toMeters method

double toMeters({
  1. required double value,
})

Converts a value in this UOM to meters.

Parameters:

  • value — The value to convert.

Return Value: The value in meters or NAN if the conversion fails.

Implementation

double toMeters({
  required double value,
}) {
  return _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_LinearUnit_toMeters(
      _handle,
      value,
      errorHandler,
    );
  });
}