copyWith method

WiredashThemeData copyWith({
  1. Brightness? brightness,
  2. Color? primaryColor,
  3. Color? secondaryColor,
  4. Color? primaryBackgroundColor,
  5. Color? secondaryBackgroundColor,
  6. Color? primaryTextOnBackgroundColor,
  7. Color? secondaryTextOnBackgroundColor,
  8. Color? primaryContainerColor,
  9. Color? textOnPrimaryContainerColor,
  10. Color? secondaryContainerColor,
  11. Color? textOnSecondaryContainerColor,
  12. Color? appBackgroundColor,
  13. Color? appHandleBackgroundColor,
  14. Color? errorColor,
  15. Color? firstPenColor,
  16. Color? secondPenColor,
  17. Color? thirdPenColor,
  18. Color? fourthPenColor,
  19. DeviceClass? deviceClass,
  20. WiredashTextTheme? textTheme,
  21. Size? windowSize,
})

Implementation

WiredashThemeData copyWith({
  Brightness? brightness,
  Color? primaryColor,
  Color? secondaryColor,
  Color? primaryBackgroundColor,
  Color? secondaryBackgroundColor,
  Color? primaryTextOnBackgroundColor,
  Color? secondaryTextOnBackgroundColor,
  Color? primaryContainerColor,
  Color? textOnPrimaryContainerColor,
  Color? secondaryContainerColor,
  Color? textOnSecondaryContainerColor,
  Color? appBackgroundColor,
  Color? appHandleBackgroundColor,
  Color? errorColor,
  Color? firstPenColor,
  Color? secondPenColor,
  Color? thirdPenColor,
  Color? fourthPenColor,
  DeviceClass? deviceClass,
  WiredashTextTheme? textTheme,
  Size? windowSize,
}) {
  return WiredashThemeData(
    brightness: brightness ?? this.brightness,
    primaryColor: primaryColor ?? this.primaryColor,
    secondaryColor: secondaryColor ?? this.secondaryColor,
    primaryBackgroundColor:
        primaryBackgroundColor ?? this.primaryBackgroundColor,
    secondaryBackgroundColor:
        secondaryBackgroundColor ?? this.secondaryBackgroundColor,
    primaryTextOnBackgroundColor:
        primaryTextOnBackgroundColor ?? this.primaryTextOnBackgroundColor,
    secondaryTextOnBackgroundColor:
        secondaryTextOnBackgroundColor ?? this.secondaryTextOnBackgroundColor,
    primaryContainerColor:
        primaryContainerColor ?? this.primaryContainerColor,
    textOnPrimaryContainerColor:
        textOnPrimaryContainerColor ?? this.textOnPrimaryContainerColor,
    secondaryContainerColor:
        secondaryContainerColor ?? this.secondaryContainerColor,
    textOnSecondaryContainerColor:
        textOnSecondaryContainerColor ?? this.textOnSecondaryContainerColor,
    appBackgroundColor: appBackgroundColor ?? this.appBackgroundColor,
    appHandleBackgroundColor:
        appHandleBackgroundColor ?? this.appHandleBackgroundColor,
    errorColor: errorColor ?? this.errorColor,
    firstPenColor: firstPenColor ?? this.firstPenColor,
    secondPenColor: secondPenColor ?? this.secondPenColor,
    thirdPenColor: thirdPenColor ?? this.thirdPenColor,
    fourthPenColor: fourthPenColor ?? this.fourthPenColor,
    deviceClass: deviceClass ?? this.deviceClass,
    textTheme: textTheme ?? _textTheme,
    windowSize: windowSize ?? this.windowSize,
  );
}