toNull method
void
toNull()
Sets the int value to null.
This is a convenience method for the common case of clearing an int value to null, such as form inputs, when using a nullable int property.
It is equivalent to setting value = null, but more concise and semantically clear, and allows for function tear-off.
Implementation
void toNull() => value = null;