dispose method

  1. @override
void dispose()

The root box belongs to the tree, not to this view: let go of it.

Implementation

@override
void dispose() {
  child = null;
  super.dispose();
}