isMounted property

bool get isMounted
inherited

Whether this component is currently added to a component tree.

Implementation

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