copyWith method
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,
);
}