isUrl top-level property

CustomMatching isUrl
final

Implementation

final isUrl = matcher('to be an url', (item, _) {
  assert(item is String);
  return urlRegex.hasMatch(item);
});