dispose method

  1. @override
void dispose()
override

Implementation

@override
void dispose(){
  if(disposed) return;
  disposed = true;
  super.dispose();
  object?.dispose();
  levels.forEach((level){
    level.dispose();
  });
}