asValidator method

String? Function(String?)? asValidator(
  1. BuildContext context
)

Implementation

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