asValidator method
Implementation
String? Function(String?)? asValidator(BuildContext context) =>
this != null ? (val) => this!(context, val) : null;
String? Function(String?)? asValidator(BuildContext context) =>
this != null ? (val) => this!(context, val) : null;