consumeExpandedBlock method

double? consumeExpandedBlock(
  1. Display? display,
  2. RenderContext context
)

Implementation

double? consumeExpandedBlock(Display? display, RenderContext context) {
  if ((display == Display.BLOCK || display == Display.LIST_ITEM) && !renderContext.parser.shrinkWrap) {
    return double.infinity;
  }
  return null;
}