there is no such. There is nothing like a destructor in Dart. JS garbage collector doesn't provide a way to implement this.