teardown method

  1. @override
Future teardown()

Closes down the Store so it will no longer be operational. Only use this if you want to destroy the Store while your app is running. Do not use this method as a way to stop listening to onChange state changes. For that purpose, view the onChange documentation.

Implementation

@override
Future teardown() async {
  await _storeListener.cancel();
  await super.teardown();
}