validate abstract method Null safety

bool validate(
  1. T value
)

Returns true if valid.