registEvent method

void registEvent()

Implementation

void registEvent() {
  _itemInstanceEventChannel = EventChannel('${_eventChannelNamePrefix}_$hashCode');
  _subscription = _itemInstanceEventChannel!.receiveBroadcastStream(hashCode).listen(onEvent, onError: onError);
}