unsubscribe method

Future<void> unsubscribe()

Unsubscribes from this subscription.

This will call the underlying client's unsubscribe logic for the specific channels or patterns associated with this subscription.

Implementation

Future<void> unsubscribe() async {
  if (_onUnsubscribe != null) {
    await _onUnsubscribe!();
  }
}