dispose method

  1. @override
void dispose()
override

Clear the store, notify all active listeners and dispose the ChangeNotifier.

Implementation

@override
void dispose() {
  _customerSession.removeListener(_customerSessionListener);
  paymentMethods.clear();
  notifyListeners();
  if (identical(this, _instance)) {
    _instance = null;
  }
  super.dispose();
}