setParser method

void setParser(
  1. String name
)

Change the current parser.

Implementation

void setParser(String name) {
  assert(_parsers.containsKey(name));
  _currentParser = _parsers[name]!;
}