requiredTextField static method

String? requiredTextField(
  1. String? input
)

Implementation of StringValidator.isNotNullOrEmpty for required text field

Implementation

static String? requiredTextField(String? input) =>
    input.isNotNullOrEmpty() ? null : 'This field cannot be empty';