onDestroy method

  1. @mustCallSuper
  2. @protected
void onDestroy()

Called when the object, or one above it, is destroyed: children before parents, while the object is still there to read (where it was, what it carried). Adding to it then throws.

Implementation

@mustCallSuper
@protected
void onDestroy() {}