get<T> static method

List<Wire> get<T>({
  1. String? signal,
  2. Object? scope,
  3. WireListener? listener,
  4. int? wireId,
})

When you need Wires associated with signal or scope or listener Returns List<Wire>

Implementation

static List<Wire<dynamic>> get<T>({String? signal, Object? scope, WireListener<dynamic>? listener, int? wireId}) {
  final result = <Wire<dynamic>>[];
  if (signal != null) result.addAll(_COMMUNICATION_LAYER.getBySignal(signal));
  if (scope != null) result.addAll(_COMMUNICATION_LAYER.getByScope(scope));
  if (listener != null) result.addAll(_COMMUNICATION_LAYER.getByListener(listener));
  if (wireId != null) {
    final wire = _COMMUNICATION_LAYER.getByWireId(wireId);
    if (wire != null) result.add(wire);
  }
  return result;
}