validate method

int validate({
  1. int value = 0,
})

Implementation

int validate({int value = 0}) {
  return this ?? value;
}