dispose method

  1. @override
void dispose()
override

Releases any native resources held by this element.

The element must not be drawn after this has been called. Elements that hold no such resources do nothing.

Implementation

@override
void dispose() {
  for (final child in children) {
    child.dispose();
  }
}