validate method

double validate({
  1. double value = 0.0,
})

Validate given double is not null and returns given value if null.

Implementation

double validate({double value = 0.0}) => this ?? value;