CannotInflateError<DelegateType extends BaseBoxyDelegate<Object, BaseBoxyChild>> constructor

CannotInflateError<DelegateType extends BaseBoxyDelegate<Object, BaseBoxyChild>>({
  1. required BaseBoxyDelegate<Object, BaseBoxyChild> delegate,
  2. required RenderBoxyMixin<RenderObject, BaseBoxyParentData<RenderObject>, BaseBoxyChild> render,
})

Constructs an inflation error given the delegate and RenderObject.

Implementation

CannotInflateError({
  required this.delegate,
  required this.render,
}) : super.fromParts([
        ErrorSummary(
            'The $delegate boxy attempted to inflate a widget during a dry layout.'),
        ErrorDescription(
          'This happens if an ancestor of the boxy (e.g. Wrap) requires a '
          'dry layout, but your size also depends on an inflated widget.',
        ),
        ErrorDescription(
          "If your boxy's size does not depend on the size of this widget you "
          'can skip the call to `inflate` when `isDryLayout` is true',
        ),
      ]);