getRegex method Null safety

RegExp getRegex(
  1. Encoding encoding
)

Implementation

static RegExp getRegex(Encoding encoding) {
  return _regexMap[encoding]!;
}