destroy method

  1. @override
void destroy()
override

Destroys the data and marks the instance as uninitialized.

Implementation

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

  _data = const InvalidObject();
  userId = "";

  notifyListeners();
}