copyWith method

Theme copyWith({
  1. String? inputPrefix,
  2. String? inputSuffix,
  3. String? successPrefix,
  4. String? successSuffix,
  5. String? errorPrefix,
  6. String? hiddenPrefix,
  7. StyleFunction? messageStyle,
  8. StyleFunction? errorStyle,
  9. StyleFunction? hintStyle,
  10. StyleFunction? valueStyle,
  11. StyleFunction? defaultStyle,
  12. String? activeItemPrefix,
  13. String? inactiveItemPrefix,
  14. StyleFunction? activeItemStyle,
  15. StyleFunction? inactiveItemStyle,
  16. String? checkedItemPrefix,
  17. String? uncheckedItemPrefix,
  18. String? pickedItemPrefix,
  19. String? unpickedItemPrefix,
  20. bool? showActiveCursor,
  21. String? progressPrefix,
  22. String? progressSuffix,
  23. String? emptyProgress,
  24. String? filledProgress,
  25. String? leadingProgress,
  26. StyleFunction? emptyProgressStyle,
  27. StyleFunction? filledProgressStyle,
  28. StyleFunction? leadingProgressStyle,
  29. List<String>? spinners,
  30. int? spinningInterval,
})

Copy current theme with new properties and create a new Theme from it.

Implementation

Theme copyWith({
  String? inputPrefix,
  String? inputSuffix,
  String? successPrefix,
  String? successSuffix,
  String? errorPrefix,
  String? hiddenPrefix,
  StyleFunction? messageStyle,
  StyleFunction? errorStyle,
  StyleFunction? hintStyle,
  StyleFunction? valueStyle,
  StyleFunction? defaultStyle,
  String? activeItemPrefix,
  String? inactiveItemPrefix,
  StyleFunction? activeItemStyle,
  StyleFunction? inactiveItemStyle,
  String? checkedItemPrefix,
  String? uncheckedItemPrefix,
  String? pickedItemPrefix,
  String? unpickedItemPrefix,
  bool? showActiveCursor,
  String? progressPrefix,
  String? progressSuffix,
  String? emptyProgress,
  String? filledProgress,
  String? leadingProgress,
  StyleFunction? emptyProgressStyle,
  StyleFunction? filledProgressStyle,
  StyleFunction? leadingProgressStyle,
  List<String>? spinners,
  int? spinningInterval,
}) {
  return Theme(
    inputPrefix: inputPrefix ?? this.inputPrefix,
    inputSuffix: inputSuffix ?? this.inputSuffix,
    successPrefix: successPrefix ?? this.successPrefix,
    successSuffix: successSuffix ?? this.successSuffix,
    errorPrefix: errorPrefix ?? this.errorPrefix,
    hiddenPrefix: hiddenPrefix ?? this.hiddenPrefix,
    messageStyle: messageStyle ?? this.messageStyle,
    errorStyle: errorStyle ?? this.errorStyle,
    hintStyle: hintStyle ?? this.hintStyle,
    valueStyle: valueStyle ?? this.valueStyle,
    defaultStyle: defaultStyle ?? this.defaultStyle,
    activeItemPrefix: activeItemPrefix ?? this.activeItemPrefix,
    inactiveItemPrefix: inactiveItemPrefix ?? this.inactiveItemPrefix,
    activeItemStyle: activeItemStyle ?? this.activeItemStyle,
    inactiveItemStyle: inactiveItemStyle ?? this.inactiveItemStyle,
    checkedItemPrefix: checkedItemPrefix ?? this.checkedItemPrefix,
    uncheckedItemPrefix: uncheckedItemPrefix ?? this.uncheckedItemPrefix,
    pickedItemPrefix: pickedItemPrefix ?? this.pickedItemPrefix,
    unpickedItemPrefix: unpickedItemPrefix ?? this.unpickedItemPrefix,
    showActiveCursor: showActiveCursor ?? this.showActiveCursor,
    progressPrefix: progressPrefix ?? this.progressPrefix,
    progressSuffix: progressSuffix ?? this.progressSuffix,
    emptyProgress: emptyProgress ?? this.emptyProgress,
    filledProgress: filledProgress ?? this.filledProgress,
    leadingProgress: leadingProgress ?? this.leadingProgress,
    emptyProgressStyle: emptyProgressStyle ?? this.emptyProgressStyle,
    filledProgressStyle: filledProgressStyle ?? this.filledProgressStyle,
    leadingProgressStyle: leadingProgressStyle ?? this.leadingProgressStyle,
    spinners: spinners ?? this.spinners,
    spinningInterval: spinningInterval ?? this.spinningInterval,
  );
}