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