validate abstract method

String? validate(
  1. String s
)

A function that returns an error message string to display if the input s not pass a validation test and returns null otherwise.

Implementation

String? validate(String s);