copyWith method
DbLensThemeData
copyWith(
{ - Color? bg,
- Color? surface,
- Color? border,
- Color? textPrimary,
- Color? textSecondary,
- Color? textMuted,
- Color? accent,
- Color? accentSoft,
- Color? syntaxNull,
- Color? syntaxString,
- Color? syntaxNumber,
- Color? syntaxBool,
- Color? syntaxDefault,
- Color? diffAdded,
- Color? diffRemoved,
- Color? diffChanged,
})
Implementation
DbLensThemeData copyWith({
Color? bg,
Color? surface,
Color? border,
Color? textPrimary,
Color? textSecondary,
Color? textMuted,
Color? accent,
Color? accentSoft,
Color? syntaxNull,
Color? syntaxString,
Color? syntaxNumber,
Color? syntaxBool,
Color? syntaxDefault,
Color? diffAdded,
Color? diffRemoved,
Color? diffChanged,
}) {
return DbLensThemeData(
bg: bg ?? this.bg,
surface: surface ?? this.surface,
border: border ?? this.border,
textPrimary: textPrimary ?? this.textPrimary,
textSecondary: textSecondary ?? this.textSecondary,
textMuted: textMuted ?? this.textMuted,
accent: accent ?? this.accent,
accentSoft: accentSoft ?? this.accentSoft,
syntaxNull: syntaxNull ?? this.syntaxNull,
syntaxString: syntaxString ?? this.syntaxString,
syntaxNumber: syntaxNumber ?? this.syntaxNumber,
syntaxBool: syntaxBool ?? this.syntaxBool,
syntaxDefault: syntaxDefault ?? this.syntaxDefault,
diffAdded: diffAdded ?? this.diffAdded,
diffRemoved: diffRemoved ?? this.diffRemoved,
diffChanged: diffChanged ?? this.diffChanged,
);
}