dispose method

  1. @override
void dispose()
override

Release any resources held by this node.

Implementation

@override
void dispose() {
  _viewport = null;
  gestureListener = null;
  widgetDelegate = null;
  styleSheets.clear();
  adoptedStyleSheets.clear();
  super.dispose();
}