Channel constructor

Channel(
  1. String _name,
  2. int _rtHashCode
)

Implementation

Channel(this._name, this._rtHashCode) {
  platform.invokeMethod(
    rtHashCode: _rtHashCode,
    method: "Channel()",
    args: {
      "channelName": _name,
      "stateCallback": platform.allowInterop(_stateCallback),
    },
  );
}