CannotLayoutSliverError constructor
CannotLayoutSliverError({
- required BaseBoxyDelegate<
Object, BaseBoxyChild> delegate, - required RenderBoxyMixin<
RenderObject, BaseBoxyParentData< render,RenderObject> , BaseBoxyChild> - required BaseBoxyChild child,
Constructs an inflation error given the delegate and RenderObject.
Implementation
CannotLayoutSliverError({
required this.delegate,
required this.render,
required this.child,
}) : super.fromParts([
ErrorSummary(
'The $delegate boxy attempted to lay out a sliver during a dry layout.'),
ErrorDescription(
'Slivers in Flutter do not support dry layouts, so it is not possible to '
'lay them out during a dry layout pass.',
),
ErrorDescription(
"If your boxy's size does not depend on the size of the sliver you "
'can skip calling layout when `isDryLayout` is true.',
),
]);