name static method

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

Check if the value is an acceptable name string (alpha with '.' and space characters).

Implementation

static String? name(String? value, {String? message}) =>
    value == null || value.isEmpty || validations.isName(value) ? null : message ?? 'Please enter a valid name';