copyWith method

  1. @override
MarkdownEditorThemeData copyWith({
  1. Decoration? decoration,
  2. Decoration? sourceDecoration,
  3. Decoration? previewDecoration,
  4. TextStyle? sourceTextStyle,
  5. Color? toolbarColor,
  6. Color? toolbarIconColor,
  7. Color? toolbarActiveIconColor,
  8. Color? toolbarActiveBackgroundColor,
  9. Color? dividerColor,
  10. Color? searchBarColor,
  11. Color? suggestionPanelColor,
  12. Color? suggestionSelectedBackgroundColor,
  13. Color? selectionColor,
  14. Color? dropTargetColor,
  15. Color? dropTargetBorderColor,
  16. Color? blockBorderColor,
  17. Color? blockHeaderColor,
  18. TextStyle? blockHeaderTextStyle,
  19. Color? tableBorderColor,
  20. Color? tableHeaderColor,
  21. Color? tableSelectionColor,
  22. Color? tableActiveBorderColor,
  23. double? editorBorderRadius,
  24. double? toolbarButtonRadius,
  25. double? blockBorderRadius,
  26. EdgeInsetsGeometry? contentPadding,
  27. EdgeInsetsGeometry? sourcePadding,
  28. EdgeInsetsGeometry? previewPadding,
  29. EdgeInsetsGeometry? blockPadding,
  30. 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,
  );
}