name static method

FormFieldValidator<String> name({
  1. String? error_text,
})

Implementation

static FormFieldValidator<String> name( {String? error_text} ){

  error_text ??= "Missed";

  return ( text ) {

    if ( ToolsValidation.isName( text) == false ) {
      return error_text;
    }

    return null;
  };
}