alpha static method

String? alpha(
  1. String? value, {
  2. String? message,
})

Checks if the value is alphabetic, i.e., contains only letters.

Implementation

static String? alpha(String? value, {String? message}) =>
    value == null || value.isEmpty || validations.isAlpha(value) ? null : message ?? 'Please enter only alphabets';