validate abstract method

String? validate(
  1. BuildContext context,
  2. String fieldName,
  3. String? value
)

Function to validate the form input. It takes a string and returns an String error message if the input is invalid or null if the input is valid.

Implementation

String? validate(
  BuildContext context,
  String fieldName,
  String? value,
);