copyWith method

BlockStyle copyWith({
  1. TextStyle? textStyle,
  2. TextStyle? emptyTextStyle,
  3. TextStyle? editingTextStyle,
  4. double? indentWidth,
  5. double? bulletSpacing,
  6. double? bulletSize,
  7. Color? bulletColor,
  8. double? collapseIconSize,
  9. EdgeInsets? contentPadding,
  10. String? emptyBlockText,
})

Creates a copy of this BlockStyle with the given fields replaced

Implementation

BlockStyle copyWith({
  TextStyle? textStyle,
  TextStyle? emptyTextStyle,
  TextStyle? editingTextStyle,
  double? indentWidth,
  double? bulletSpacing,
  double? bulletSize,
  Color? bulletColor,
  double? collapseIconSize,
  EdgeInsets? contentPadding,
  String? emptyBlockText,
}) {
  return BlockStyle(
    textStyle: textStyle ?? this.textStyle,
    emptyTextStyle: emptyTextStyle ?? this.emptyTextStyle,
    editingTextStyle: editingTextStyle ?? this.editingTextStyle,
    indentWidth: indentWidth ?? this.indentWidth,
    bulletSpacing: bulletSpacing ?? this.bulletSpacing,
    bulletSize: bulletSize ?? this.bulletSize,
    bulletColor: bulletColor ?? this.bulletColor,
    collapseIconSize: collapseIconSize ?? this.collapseIconSize,
    contentPadding: contentPadding ?? this.contentPadding,
    emptyBlockText: emptyBlockText ?? this.emptyBlockText,
  );
}