convertTo method
Converts a value in this UOM into another UOM.
Parameters:
toUnit
— The UOM to convert to.area
— The value to convert.
Return Value: The value in the target UOM or NAN if the conversion fails.
Implementation
double convertTo({
required AreaUnit toUnit,
required double area,
}) {
return _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_AreaUnit_convertTo(
_handle,
toUnit._handle,
area,
errorHandler,
);
});
}