onDestroy method
void
onDestroy(
- void callback()
Register a callback that will be called when the component is destroyed.
Implementation
void onDestroy(void Function() callback) {
hostView.onDestroy(callback);
}