Validates the given boolean value.
If the value is not null, it returns the value itself. If the value is null, it returns the provided value.
value
bool validate({bool value = false}) => this ?? value;