debugIsActive property

bool get debugIsActive

Returns true if the Element is active.

This getter always returns false in profile and release builds. See the lifecycle documentation for Element for additional information.

Implementation

bool get debugIsActive {
  bool isActive = false;
  assert(() {
    isActive = _lifecycleState == _ElementLifecycle.active;
    return true;
  }());
  return isActive;
}