How to do something before object destruction in Dart? How to do something before object destruction in Dart? dart dart