addListen method

void addListen({
  1. ValueChanged<MyNotification>? listen,
})

add listener

Implementation

void addListen({ValueChanged<MyNotification>? listen}) {
  closeListen();
  if (client != null) {
    _stream ??= listenAriaMsg(client: client!).listen((event) {
      listen?.call(event);
    });
  }
}