copyWith method

  1. @override
DefaultListBlockStyle copyWith({
  1. TextStyle? style,
  2. HorizontalSpacing? horizontalSpacing,
  3. VerticalSpacing? verticalSpacing,
  4. VerticalSpacing? lineSpacing,
  5. BoxDecoration? decoration,
  6. QuillCheckboxBuilder? checkboxUIBuilder,
  7. LeadingBlockIndentWidth? indentWidthBuilder,
  8. LeadingBlockNumberPointWidth? numberPointWidthBuilder,
})
override

Implementation

@override
DefaultListBlockStyle copyWith({
  TextStyle? style,
  HorizontalSpacing? horizontalSpacing,
  VerticalSpacing? verticalSpacing,
  VerticalSpacing? lineSpacing,
  BoxDecoration? decoration,
  QuillCheckboxBuilder? checkboxUIBuilder,
  LeadingBlockIndentWidth? indentWidthBuilder,
  LeadingBlockNumberPointWidth? numberPointWidthBuilder,
}) {
  return DefaultListBlockStyle(
    style ?? this.style,
    horizontalSpacing ?? this.horizontalSpacing,
    verticalSpacing ?? this.verticalSpacing,
    lineSpacing ?? this.lineSpacing,
    decoration ?? this.decoration,
    checkboxUIBuilder ?? this.checkboxUIBuilder,
    indentWidthBuilder: indentWidthBuilder ?? this.indentWidthBuilder,
    numberPointWidthBuilder:
    numberPointWidthBuilder ?? this.numberPointWidthBuilder,
  );
}