dispose method

  1. @override
void dispose()
override

Implementation

@override
void dispose() {
  final Subscription<T>? subscription = _subscription;
  if (subscription != null) {
    LiveQuery().client.unSubscribe(subscription);
    _subscription = null;
  }
  super.dispose();
}