onDidDispose property
Event<void>
get
onDidDispose
Event fired when the view is disposed.
Views are disposed when they are explicitly hidden by a user (this happens when a user right clicks in a view and unchecks the webview view).
Trying to use the view after it has been disposed throws an exception.
Implementation
_i3.Event<void> get onDidDispose => _i5.getProperty(
this,
'onDidDispose',
);