asNullIfZero property

double? asNullIfZero

returns null if 0

Implementation

double? get asNullIfZero => this == 0 ? null : this;