ConnectionBinding<T> constructor
ConnectionBinding<T> (
- String event,
- T callback
Constructs a ConnectionBinding object.
The event parameter is the name of the connection event.
The callback parameter is the callback function to be executed when the event occurs.
Implementation
ConnectionBinding(this.event, this.callback) {
this.event = event;
this.callback = callback;
}