validate method

bool validate(
  1. String link,
  2. String service
)

Implementation

bool validate(String link, String service) {
  return RegExp(regexes[service]).hasMatch(link);
}