hcValidate method

bool hcValidate({
  1. bool value = false,
})

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

Implementation

bool hcValidate({bool value = false}) => this ?? value;