copyWith method
DownloadFontsDialogStyle
copyWith({
- Color? backgroundColor,
- String? defaultFontText,
- Color? dividerColor,
- String? downloadedFontsText,
- Color? downloadButtonBackgroundColor,
- TextStyle? downloadingStyle,
- String? downloadingText,
- TextStyle? fontNameStyle,
- Color? iconColor,
- double? iconSize,
- Widget? iconWidget,
- Color? linearProgressBackgroundColor,
- Color? linearProgressColor,
- String? notes,
- Color? notesColor,
- TextStyle? notesStyle,
- String? title,
- Color? titleColor,
- TextStyle? titleStyle,
- String? headerTitle,
- Color? closeIconColor,
- Gradient? backgroundGradient,
Creates a copy of the current DownloadFontsDialogStyle instance with the specified properties replaced by new values.
This method allows you to create a modified version of the current style by providing new values for specific properties while keeping the rest unchanged.
Implementation
DownloadFontsDialogStyle copyWith({
Color? backgroundColor,
String? defaultFontText,
Color? dividerColor,
String? downloadedFontsText,
Color? downloadButtonBackgroundColor,
TextStyle? downloadingStyle,
String? downloadingText,
TextStyle? fontNameStyle,
Color? iconColor,
double? iconSize,
Widget? iconWidget,
Color? linearProgressBackgroundColor,
Color? linearProgressColor,
String? notes,
Color? notesColor,
TextStyle? notesStyle,
String? title,
Color? titleColor,
TextStyle? titleStyle,
String? headerTitle,
Color? closeIconColor,
Gradient? backgroundGradient,
}) {
return DownloadFontsDialogStyle(
backgroundColor: backgroundColor ?? this.backgroundColor,
defaultFontText: defaultFontText ?? this.defaultFontText,
dividerColor: dividerColor ?? this.dividerColor,
downloadedFontsText: downloadedFontsText ?? this.downloadedFontsText,
downloadButtonBackgroundColor:
downloadButtonBackgroundColor ?? this.downloadButtonBackgroundColor,
downloadingStyle: downloadingStyle ?? this.downloadingStyle,
downloadingText: downloadingText ?? this.downloadingText,
fontNameStyle: fontNameStyle ?? this.fontNameStyle,
iconColor: iconColor ?? this.iconColor,
iconSize: iconSize ?? this.iconSize,
iconWidget: iconWidget ?? this.iconWidget,
linearProgressBackgroundColor:
linearProgressBackgroundColor ?? this.linearProgressBackgroundColor,
linearProgressColor: linearProgressColor ?? this.linearProgressColor,
notes: notes ?? this.notes,
notesColor: notesColor ?? this.notesColor,
notesStyle: notesStyle ?? this.notesStyle,
titleColor: titleColor ?? this.titleColor,
titleStyle: titleStyle ?? this.titleStyle,
headerTitle: headerTitle ?? this.headerTitle,
closeIconColor: closeIconColor ?? this.closeIconColor,
backgroundGradient: backgroundGradient ?? this.backgroundGradient,
);
}