bindKeys method Null safety

Stream<String> bindKeys(
  1. List<String> codes
)

Implementation

static Stream<String> bindKeys(List<String> codes) {
  init();
  var controller = StreamController<String>.broadcast();
  for (var key in codes) {
    bindKey(key).listen(controller.add);
  }
  return controller.stream;
}