text static method

String? text(
  1. String? value
)

Implementation

static String? text(String? value) {
  if (value == null || value.isEmpty) {
    return 'This field is required';
  }
  return null;
}