destroy method

  1. @override
void destroy()
override

Destroys the data and marks the instance as uninitialized.

Implementation

@override
void destroy() {
  super.destroy();

  userId = "";
  _data = [];

  notifyListeners();
}