reactive_forms icon indicating copy to clipboard operation
reactive_forms copied to clipboard

Fix: const constructors for PatternEvaluators

Open simon-the-shark opened this issue 1 year ago • 1 comments

I've added const keyword in two places.

This change is needed to allow us to use PatternEvaluators with code generation version of this plugin like this:

@RfControl(validators: [
      RequiredValidator(),
      PatternValidator(
        DefaultPatternEvaluator(
          r'^(https:\/\/)[a-zA-Z0-9\-\.]+\.[a-z]{2,3}(/\S*)?$',
        ),
      )
    ])
    String? url,

simon-the-shark avatar Jun 21 '24 22:06 simon-the-shark