copyWith method
MarkdownEditorThemeData
copyWith({
- Decoration? decoration,
- Decoration? sourceDecoration,
- Decoration? previewDecoration,
- TextStyle? sourceTextStyle,
- Color? toolbarColor,
- Color? toolbarIconColor,
- Color? toolbarActiveIconColor,
- Color? toolbarActiveBackgroundColor,
- Color? dividerColor,
- Color? searchBarColor,
- Color? suggestionPanelColor,
- Color? suggestionSelectedBackgroundColor,
- Color? selectionColor,
- Color? dropTargetColor,
- Color? dropTargetBorderColor,
- Color? blockBorderColor,
- Color? blockHeaderColor,
- TextStyle? blockHeaderTextStyle,
- Color? tableBorderColor,
- Color? tableHeaderColor,
- Color? tableSelectionColor,
- Color? tableActiveBorderColor,
- double? editorBorderRadius,
- double? toolbarButtonRadius,
- double? blockBorderRadius,
- EdgeInsetsGeometry? contentPadding,
- EdgeInsetsGeometry? sourcePadding,
- EdgeInsetsGeometry? previewPadding,
- EdgeInsetsGeometry? blockPadding,
- EdgeInsetsGeometry? tablePadding,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
MarkdownEditorThemeData copyWith({
Decoration? decoration,
Decoration? sourceDecoration,
Decoration? previewDecoration,
TextStyle? sourceTextStyle,
Color? toolbarColor,
Color? toolbarIconColor,
Color? toolbarActiveIconColor,
Color? toolbarActiveBackgroundColor,
Color? dividerColor,
Color? searchBarColor,
Color? suggestionPanelColor,
Color? suggestionSelectedBackgroundColor,
Color? selectionColor,
Color? dropTargetColor,
Color? dropTargetBorderColor,
Color? blockBorderColor,
Color? blockHeaderColor,
TextStyle? blockHeaderTextStyle,
Color? tableBorderColor,
Color? tableHeaderColor,
Color? tableSelectionColor,
Color? tableActiveBorderColor,
double? editorBorderRadius,
double? toolbarButtonRadius,
double? blockBorderRadius,
EdgeInsetsGeometry? contentPadding,
EdgeInsetsGeometry? sourcePadding,
EdgeInsetsGeometry? previewPadding,
EdgeInsetsGeometry? blockPadding,
EdgeInsetsGeometry? tablePadding,
}) {
return MarkdownEditorThemeData(
decoration: decoration ?? this.decoration,
sourceDecoration: sourceDecoration ?? this.sourceDecoration,
previewDecoration: previewDecoration ?? this.previewDecoration,
sourceTextStyle: sourceTextStyle ?? this.sourceTextStyle,
toolbarColor: toolbarColor ?? this.toolbarColor,
toolbarIconColor: toolbarIconColor ?? this.toolbarIconColor,
toolbarActiveIconColor:
toolbarActiveIconColor ?? this.toolbarActiveIconColor,
toolbarActiveBackgroundColor:
toolbarActiveBackgroundColor ?? this.toolbarActiveBackgroundColor,
dividerColor: dividerColor ?? this.dividerColor,
searchBarColor: searchBarColor ?? this.searchBarColor,
suggestionPanelColor: suggestionPanelColor ?? this.suggestionPanelColor,
suggestionSelectedBackgroundColor: suggestionSelectedBackgroundColor ??
this.suggestionSelectedBackgroundColor,
selectionColor: selectionColor ?? this.selectionColor,
dropTargetColor: dropTargetColor ?? this.dropTargetColor,
dropTargetBorderColor:
dropTargetBorderColor ?? this.dropTargetBorderColor,
blockBorderColor: blockBorderColor ?? this.blockBorderColor,
blockHeaderColor: blockHeaderColor ?? this.blockHeaderColor,
blockHeaderTextStyle: blockHeaderTextStyle ?? this.blockHeaderTextStyle,
tableBorderColor: tableBorderColor ?? this.tableBorderColor,
tableHeaderColor: tableHeaderColor ?? this.tableHeaderColor,
tableSelectionColor: tableSelectionColor ?? this.tableSelectionColor,
tableActiveBorderColor:
tableActiveBorderColor ?? this.tableActiveBorderColor,
editorBorderRadius: editorBorderRadius ?? this.editorBorderRadius,
toolbarButtonRadius: toolbarButtonRadius ?? this.toolbarButtonRadius,
blockBorderRadius: blockBorderRadius ?? this.blockBorderRadius,
contentPadding: contentPadding ?? this.contentPadding,
sourcePadding: sourcePadding ?? this.sourcePadding,
previewPadding: previewPadding ?? this.previewPadding,
blockPadding: blockPadding ?? this.blockPadding,
tablePadding: tablePadding ?? this.tablePadding,
);
}