copyWith method

EditorThemeData copyWith({
  1. Color? shellBackground,
  2. Color? inactiveShellBackground,
  3. Color? activeShellBorderColor,
  4. Color? inactiveShellBorderColor,
  5. Color? bodyBackground,
  6. Color? inactiveBodyBackground,
  7. Color? activeBodyBorderColor,
  8. Color? inactiveBodyBorderColor,
  9. Color? utilityBackground,
  10. Color? utilityBorderColor,
  11. Color? titleForeground,
  12. Color? inactiveTitleForeground,
  13. Color? metaForeground,
  14. Color? inactiveMetaForeground,
  15. Color? focusedPromptForeground,
  16. Color? blurredPromptForeground,
  17. Color? focusedTextForeground,
  18. Color? blurredTextForeground,
  19. Color? focusedPlaceholderForeground,
  20. Color? blurredPlaceholderForeground,
  21. Color? focusedLineNumberForeground,
  22. Color? blurredLineNumberForeground,
  23. Color? focusedCursorLineBackground,
  24. Color? blurredCursorLineBackground,
  25. Color? focusedCursorLineNumberForeground,
  26. Color? blurredCursorLineNumberForeground,
  27. Color? searchMatchBackground,
  28. Color? searchMatchUnderlineColor,
})

Copy with selective overrides.

Implementation

EditorThemeData copyWith({
  Color? shellBackground,
  Color? inactiveShellBackground,
  Color? activeShellBorderColor,
  Color? inactiveShellBorderColor,
  Color? bodyBackground,
  Color? inactiveBodyBackground,
  Color? activeBodyBorderColor,
  Color? inactiveBodyBorderColor,
  Color? utilityBackground,
  Color? utilityBorderColor,
  Color? titleForeground,
  Color? inactiveTitleForeground,
  Color? metaForeground,
  Color? inactiveMetaForeground,
  Color? focusedPromptForeground,
  Color? blurredPromptForeground,
  Color? focusedTextForeground,
  Color? blurredTextForeground,
  Color? focusedPlaceholderForeground,
  Color? blurredPlaceholderForeground,
  Color? focusedLineNumberForeground,
  Color? blurredLineNumberForeground,
  Color? focusedCursorLineBackground,
  Color? blurredCursorLineBackground,
  Color? focusedCursorLineNumberForeground,
  Color? blurredCursorLineNumberForeground,
  Color? searchMatchBackground,
  Color? searchMatchUnderlineColor,
}) {
  return EditorThemeData(
    shellBackground: shellBackground ?? this.shellBackground,
    inactiveShellBackground:
        inactiveShellBackground ?? this.inactiveShellBackground,
    activeShellBorderColor:
        activeShellBorderColor ?? this.activeShellBorderColor,
    inactiveShellBorderColor:
        inactiveShellBorderColor ?? this.inactiveShellBorderColor,
    bodyBackground: bodyBackground ?? this.bodyBackground,
    inactiveBodyBackground:
        inactiveBodyBackground ?? this.inactiveBodyBackground,
    activeBodyBorderColor:
        activeBodyBorderColor ?? this.activeBodyBorderColor,
    inactiveBodyBorderColor:
        inactiveBodyBorderColor ?? this.inactiveBodyBorderColor,
    utilityBackground: utilityBackground ?? this.utilityBackground,
    utilityBorderColor: utilityBorderColor ?? this.utilityBorderColor,
    titleForeground: titleForeground ?? this.titleForeground,
    inactiveTitleForeground:
        inactiveTitleForeground ?? this.inactiveTitleForeground,
    metaForeground: metaForeground ?? this.metaForeground,
    inactiveMetaForeground:
        inactiveMetaForeground ?? this.inactiveMetaForeground,
    focusedPromptForeground:
        focusedPromptForeground ?? this.focusedPromptForeground,
    blurredPromptForeground:
        blurredPromptForeground ?? this.blurredPromptForeground,
    focusedTextForeground:
        focusedTextForeground ?? this.focusedTextForeground,
    blurredTextForeground:
        blurredTextForeground ?? this.blurredTextForeground,
    focusedPlaceholderForeground:
        focusedPlaceholderForeground ?? this.focusedPlaceholderForeground,
    blurredPlaceholderForeground:
        blurredPlaceholderForeground ?? this.blurredPlaceholderForeground,
    focusedLineNumberForeground:
        focusedLineNumberForeground ?? this.focusedLineNumberForeground,
    blurredLineNumberForeground:
        blurredLineNumberForeground ?? this.blurredLineNumberForeground,
    focusedCursorLineBackground:
        focusedCursorLineBackground ?? this.focusedCursorLineBackground,
    blurredCursorLineBackground:
        blurredCursorLineBackground ?? this.blurredCursorLineBackground,
    focusedCursorLineNumberForeground:
        focusedCursorLineNumberForeground ??
        this.focusedCursorLineNumberForeground,
    blurredCursorLineNumberForeground:
        blurredCursorLineNumberForeground ??
        this.blurredCursorLineNumberForeground,
    searchMatchBackground:
        searchMatchBackground ?? this.searchMatchBackground,
    searchMatchUnderlineColor:
        searchMatchUnderlineColor ?? this.searchMatchUnderlineColor,
  );
}