firstMatch method Null safety

RegExpMatch? firstMatch (
  1. String input
)

Finds the first match of the regular expression in the string input.

Returns null if there is no match.

Implementation

RegExpMatch? firstMatch(String input);