onDispose abstract method
Register a callback to be invoked when this viewer is disposed.
Implementation
void onDispose(Future Function() callback);
Register a callback to be invoked when this viewer is disposed.
void onDispose(Future Function() callback);