DoubleOrNullExtensions extension

Extension on double? to provide utility methods for validation and null checking.

on

Methods

isNull() → bool

Available on double?, provided by the DoubleOrNullExtensions extension

Checks if the given double value is null.
validate({double value = 0.0}) → double

Available on double?, provided by the DoubleOrNullExtensions extension

Validates the double value and returns it if not null.