Wire<T> constructor

Wire<T>(
  1. Object scope,
  2. String signal,
  3. WireListener<T> listener, [
  4. int replies = 0,
])

Wire object is a communication unit of the system, each instance associated with a signal

Wire object can be passed as a reference to any component of the your system But it wont react on signal until it is attached to the communication layer with attach However you still can send data through it by calling transfer

Implementation

Wire(Object scope, String signal, WireListener<T> listener, [int replies = 0]) {
  _scope = scope;
  _signal = signal;
  _listener = listener;
  this.replies = replies;
  _id = ++_INDEX;
}