asNullIfZero property

double? get asNullIfZero

returns null if 0

Implementation

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