Register a callback to be invoked when this viewer is disposed.
@override void onDispose(Future Function() callback) { // TODO: implement onDispose }