namedGroup method

  1. @override
String? namedGroup(
  1. String name
)
override

The string captured by the named capture group name.

Returns the substring of the input that the labeled capture group, labeled name, matched, or null if that capture group was not part of the match.

The name must be the name of a named capture group in the regular expression pattern which created this match. That is, the name must be in groupNames.

Implementation

@override
String? namedGroup(String name) => $value.namedGroup(name);