onDisappear method
Adds an action to perform after this view disappears.
action
The action to perform. If action is nil, the call has no effect.
Implementation
Widget onDisappear(VoidCallback? action) =>
WidgetVisibilityDetector(onDisappear: action, child: this);