isMounted property

bool isMounted

Whether this component is currently added to a component tree.

Implementation

bool get isMounted {
  return (_state == LifecycleState.mounted) ||
      (_state == LifecycleState.removing);
}