copyWith method

DownloadFontsDialogStyle copyWith({
  1. Color? backgroundColor,
  2. String? defaultFontText,
  3. Color? dividerColor,
  4. String? downloadedFontsText,
  5. Color? downloadButtonBackgroundColor,
  6. TextStyle? downloadingStyle,
  7. String? downloadingText,
  8. TextStyle? fontNameStyle,
  9. Color? iconColor,
  10. double? iconSize,
  11. Widget? iconWidget,
  12. Color? linearProgressBackgroundColor,
  13. Color? linearProgressColor,
  14. String? notes,
  15. Color? notesColor,
  16. TextStyle? notesStyle,
  17. String? title,
  18. Color? titleColor,
  19. TextStyle? titleStyle,
  20. String? headerTitle,
  21. Color? closeIconColor,
  22. 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,
  );
}