mounted static method

PostFramePredicate mounted(
  1. BuildContext context
)

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

Implementation

static PostFramePredicate mounted(BuildContext context) {
  final element = context as Element;
  return () => element.mounted;
}