lookup static method

Instrument lookup(
  1. String name
)

Implementation

static Instrument lookup(String name) {
  _initialize();
  final instrument = _byName[name];
  if (instrument == null) throw new Exception("No instrument named $name");
  return instrument;
}