debugChildIntegrityEnabled property
Indicates whether integrity check is enabled.
Setting this property to true will immediately perform an integrity check.
The integrity check consists of:
- Verify that the children index in childList is in ascending order.
- Verify that there is no dangling keepalive child as the result of move.
Implementation
bool get debugChildIntegrityEnabled => _debugChildIntegrityEnabled;
Implementation
set debugChildIntegrityEnabled(bool enabled) {
assert(() {
_debugChildIntegrityEnabled = enabled;
return _debugVerifyChildOrder() &&
(!_debugChildIntegrityEnabled || _debugDanglingKeepAlives.isEmpty);
}());
}