copyWith method

AutoScrollStyle copyWith({
  1. Color? sliderActiveColor,
  2. Color? sliderInactiveColor,
  3. Color? sliderThumbColor,
  4. Color? overlayBackgroundColor,
  5. Color? iconColor,
  6. Color? activeIconColor,
  7. Color? textColor,
  8. Color? chipSelectedColor,
  9. Color? chipUnselectedColor,
  10. double? borderRadius,
  11. TextStyle? labelStyle,
  12. TextStyle? speedLabelStyle,
  13. String? settingsTitleText,
  14. String? stopConditionLabelText,
  15. String? pageCountLabelText,
  16. String? speedLabelText,
  17. String? slowLabelText,
  18. String? fastLabelText,
  19. Map<AutoScrollStopCondition, String>? stopConditionLabels,
  20. TextStyle? settingsTitleStyle,
  21. TextStyle? settingsSubLabelStyle,
  22. TextStyle? chipTextStyle,
  23. TextStyle? pageCountValueStyle,
  24. TextStyle? sliderHintStyle,
  25. Color? chipSelectedBorderColor,
  26. Color? chipUnselectedBorderColor,
  27. double? chipBorderRadius,
  28. Color? chipSelectedBackgroundColor,
  29. Color? chipUnselectedBackgroundColor,
  30. Color? pageCountButtonColor,
  31. String? notesLabelText,
  32. TextStyle? notesStyle,
})

Implementation

AutoScrollStyle copyWith({
  Color? sliderActiveColor,
  Color? sliderInactiveColor,
  Color? sliderThumbColor,
  Color? overlayBackgroundColor,
  Color? iconColor,
  Color? activeIconColor,
  Color? textColor,
  Color? chipSelectedColor,
  Color? chipUnselectedColor,
  double? borderRadius,
  TextStyle? labelStyle,
  TextStyle? speedLabelStyle,
  String? settingsTitleText,
  String? stopConditionLabelText,
  String? pageCountLabelText,
  String? speedLabelText,
  String? slowLabelText,
  String? fastLabelText,
  Map<AutoScrollStopCondition, String>? stopConditionLabels,
  TextStyle? settingsTitleStyle,
  TextStyle? settingsSubLabelStyle,
  TextStyle? chipTextStyle,
  TextStyle? pageCountValueStyle,
  TextStyle? sliderHintStyle,
  Color? chipSelectedBorderColor,
  Color? chipUnselectedBorderColor,
  double? chipBorderRadius,
  Color? chipSelectedBackgroundColor,
  Color? chipUnselectedBackgroundColor,
  Color? pageCountButtonColor,
  String? notesLabelText,
  TextStyle? notesStyle,
}) {
  return AutoScrollStyle(
    sliderActiveColor: sliderActiveColor ?? this.sliderActiveColor,
    sliderInactiveColor: sliderInactiveColor ?? this.sliderInactiveColor,
    sliderThumbColor: sliderThumbColor ?? this.sliderThumbColor,
    overlayBackgroundColor:
        overlayBackgroundColor ?? this.overlayBackgroundColor,
    iconColor: iconColor ?? this.iconColor,
    activeIconColor: activeIconColor ?? this.activeIconColor,
    textColor: textColor ?? this.textColor,
    chipSelectedColor: chipSelectedColor ?? this.chipSelectedColor,
    chipUnselectedColor: chipUnselectedColor ?? this.chipUnselectedColor,
    borderRadius: borderRadius ?? this.borderRadius,
    labelStyle: labelStyle ?? this.labelStyle,
    speedLabelStyle: speedLabelStyle ?? this.speedLabelStyle,
    settingsTitleText: settingsTitleText ?? this.settingsTitleText,
    stopConditionLabelText:
        stopConditionLabelText ?? this.stopConditionLabelText,
    pageCountLabelText: pageCountLabelText ?? this.pageCountLabelText,
    speedLabelText: speedLabelText ?? this.speedLabelText,
    slowLabelText: slowLabelText ?? this.slowLabelText,
    fastLabelText: fastLabelText ?? this.fastLabelText,
    stopConditionLabels: stopConditionLabels ?? this.stopConditionLabels,
    settingsTitleStyle: settingsTitleStyle ?? this.settingsTitleStyle,
    settingsSubLabelStyle:
        settingsSubLabelStyle ?? this.settingsSubLabelStyle,
    chipTextStyle: chipTextStyle ?? this.chipTextStyle,
    pageCountValueStyle: pageCountValueStyle ?? this.pageCountValueStyle,
    sliderHintStyle: sliderHintStyle ?? this.sliderHintStyle,
    chipSelectedBorderColor:
        chipSelectedBorderColor ?? this.chipSelectedBorderColor,
    chipUnselectedBorderColor:
        chipUnselectedBorderColor ?? this.chipUnselectedBorderColor,
    chipBorderRadius: chipBorderRadius ?? this.chipBorderRadius,
    chipSelectedBackgroundColor:
        chipSelectedBackgroundColor ?? this.chipSelectedBackgroundColor,
    chipUnselectedBackgroundColor:
        chipUnselectedBackgroundColor ?? this.chipUnselectedBackgroundColor,
    pageCountButtonColor: pageCountButtonColor ?? this.pageCountButtonColor,
    notesLabelText: notesLabelText ?? this.notesLabelText,
    notesStyle: notesStyle ?? this.notesStyle,
  );
}