peripheral method Null safety

Peripheral? peripheral(
  1. int port
)

access a peripheral directly.

Implementation

Peripheral? peripheral(int port) {
  return _hubState.peripherals[port];
}