debugChildIntegrityEnabled property

bool debugChildIntegrityEnabled

Indicates whether integrity check is enabled.

Setting this property to true will immediately perform an integrity check.

The integrity check consists of:

  1. Verify that the children index in childList is in ascending order.
  2. Verify that there is no dangling keepalive child as the result of move.

Implementation

bool get debugChildIntegrityEnabled => _debugChildIntegrityEnabled;
void debugChildIntegrityEnabled= (bool enabled)

Implementation

set debugChildIntegrityEnabled(bool enabled) {
  assert(enabled != null);
  assert(() {
    _debugChildIntegrityEnabled = enabled;
    return _debugVerifyChildOrder() &&
      (!_debugChildIntegrityEnabled || _debugDanglingKeepAlives.isEmpty);
  }());
}