namedGroup function

String namedGroup({
  1. required String pattern,
  2. required String name,
})

Implementation

String namedGroup({required String pattern, required String name}) {
  return '(?<$name>$pattern)';
}