- protected
Throws an exception if asserts are enabled, unless the RenderObject.debugCheckingIntrinsics flag is set.
This is a convenience function for subclasses to call from their intrinsic-sizing functions if they don't have a good way to generate the numbers.
Source
@protected
bool debugThrowIfNotCheckingIntrinsics() {
assert(() {
if (!RenderObject.debugCheckingIntrinsics) {
throw new FlutterError(
'$runtimeType does not support returning intrinsic dimensions.\n'
'Calculating the intrinsic dimensions would require walking the entire '
'child list, which cannot reliably and efficiently be done for render '
'objects that potentially generate their child list during layout.'
);
}
return true;
});
return true;
}