dispose method

  1. @override
void dispose()
override

called when the cube is destroyed

Implementation

@override
void dispose() {
  removeOnActionListener(_cubeActionListener);
  super.dispose();
}