onDisappear method

Widget onDisappear(
  1. VoidCallback? action
)

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);