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