safe method
Returns the integer value or 0 if null.
Useful for avoiding null checks in arithmetic operations.
Implementation
int safe() => this ?? 0;
Returns the integer value or 0 if null.
Useful for avoiding null checks in arithmetic operations.
int safe() => this ?? 0;