check method

String? check(
  1. T val
)

Implementation

String? check(T val) {
  return test(val) ? errorMassage : null;
}