bool hasSubscriber

Checks if this node has a subscriber. Use this for things like polling when you only want to do something if the node is subscribed to.

Source

bool get hasSubscriber => callbacks.isNotEmpty;