stateMounted static method

PostFramePredicate stateMounted(
  1. State<StatefulWidget> state
)

Returns a predicate that checks if a State is still mounted.

Implementation

static PostFramePredicate stateMounted(State state) {
  return () => state.mounted;
}