matches property

List<String> get matches

Get all Regex groups as List of Strings.

Implementation

List<String> get matches {
  final matches = <String>[];

  for (var i = 0; i <= groupCount; i++) {
    matches.add(group(i) ?? "");
  }

  return matches;
}