setPropertyFromInt method
Set int property with type safety
Implementation
void setPropertyFromInt(String property, int? value)
{
// Prevent -0.0 in JS-compiled code from occurring
// (it is mind boggling that is considered an int by Dart, as it will deserialise to a double in json.decode() )
if (value != null) {
value = value.toInt();
}
setPropertyUnsafe(property, value);
}