namedGroup method Null safety

String? namedGroup (
  1. String name
)

The string matched by the group named name.

Returns the string matched by the capture group named name, or null if no string was matched by that capture group as part of this match.

The name must be the name of a named capture group in the regular expression creating this match (that is, the name must be in groupNames).

Implementation

String? namedGroup(String name);