CssBoxWidget.withInlineSpanChildren constructor

CssBoxWidget.withInlineSpanChildren({
  1. Key? key,
  2. required List<InlineSpan> children,
  3. required CSS3 style,
  4. TextDirection? textDirection,
  5. bool childIsReplaced = false,
  6. bool shrinkWrap = false,
  7. bool selectable = false,
  8. TextSelectionControls? selectionControls,
  9. ScrollPhysics? scrollPhysics,
})

Implementation

CssBoxWidget.withInlineSpanChildren({
  super.key,
  required List<InlineSpan> children,
  required this.style,
  this.textDirection,
  this.childIsReplaced = false,
  this.shrinkWrap = false,
  bool selectable = false,
  TextSelectionControls? selectionControls,
  ScrollPhysics? scrollPhysics,
}) : child = selectable
          ? _generateSelectableWidgetChild(
              children,
              style,
              selectionControls,
              scrollPhysics,
            )
          : _generateWidgetChild(children, style);