setPropertyFromDouble method
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);
}
}