nullIfZero property
Returns null if the number is 0, otherwise returns the number itself.
Implementation
T? get nullIfZero => this == 0 ? null : this;
Returns null if the number is 0, otherwise returns the number itself.
T? get nullIfZero => this == 0 ? null : this;