setPropertyFromDouble method

void setPropertyFromDouble(
  1. String property,
  2. double? value
)

Set double property with type safety

Implementation

void setPropertyFromDouble(String property, double? value)
{
  if (value != null && value.isFinite && !value.isNaN) {
    setPropertyUnsafe(property, value);
  }
  else {
    setPropertyUnsafe(property, null);
  }
}