EmailMatcher constructor

const EmailMatcher([
  1. String pattern = r'[\w\-.+]+@(?:[\w\-]{1,256}\.){1,5}[a-zA-Z]{2,10}'
])

Creates an EmailMatcher for parsing email addresses.

The preset pattern is overwritten if a custom pattern is provided.

Implementation

const EmailMatcher([
  super.pattern = r'[\w\-.+]+@(?:[\w\-]{1,256}\.){1,5}[a-zA-Z]{2,10}',
]);