copyWith method
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,
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,
);
}