copyWith method
NeumorphismThemeData
copyWith({
- Color? baseColor,
- Color? accentColor,
- Color? variantColor,
- Color? disabledColor,
- Color? shadowLightColor,
- Color? shadowDarkColor,
- Color? shadowLightColorEmboss,
- Color? shadowDarkColorEmboss,
- Color? defaultTextColor,
- NeumorphismBoxShape? boxShape,
- TextTheme? textTheme,
- NeumorphismStyle? buttonStyle,
- IconThemeData? iconTheme,
- NeumorphismAppBarThemeData? appBarTheme,
- NeumorphismStyle? defaultStyle,
- bool? disableDepth,
- double? depth,
- double? intensity,
- Color? borderColor,
- double? borderSize,
- LightSource? lightSource,
Create a copy of this theme With possibly new values given from this method's arguments
Implementation
NeumorphismThemeData copyWith({
Color? baseColor,
Color? accentColor,
Color? variantColor,
Color? disabledColor,
Color? shadowLightColor,
Color? shadowDarkColor,
Color? shadowLightColorEmboss,
Color? shadowDarkColorEmboss,
Color? defaultTextColor,
NeumorphismBoxShape? boxShape,
TextTheme? textTheme,
NeumorphismStyle? buttonStyle,
IconThemeData? iconTheme,
NeumorphismAppBarThemeData? appBarTheme,
NeumorphismStyle? defaultStyle,
bool? disableDepth,
double? depth,
double? intensity,
Color? borderColor,
double? borderSize,
LightSource? lightSource,
}) {
return NeumorphismThemeData(
baseColor: baseColor ?? this.baseColor,
textTheme: textTheme ?? this.textTheme,
iconTheme: iconTheme ?? this.iconTheme,
buttonStyle: buttonStyle ?? this.buttonStyle,
boxShape: boxShape ?? this.boxShape,
appBarTheme: appBarTheme ?? this.appBarTheme,
accentColor: accentColor ?? this.accentColor,
variantColor: variantColor ?? this.variantColor,
disabledColor: disabledColor ?? this.disabledColor,
defaultTextColor: defaultTextColor ?? this.defaultTextColor,
disableDepth: disableDepth ?? this.disableDepth,
shadowDarkColor: shadowDarkColor ?? this.shadowDarkColor,
shadowLightColor: shadowLightColor ?? this.shadowLightColor,
shadowDarkColorEmboss:
shadowDarkColorEmboss ?? this.shadowDarkColorEmboss,
shadowLightColorEmboss:
shadowLightColorEmboss ?? this.shadowLightColorEmboss,
depth: depth ?? _depth,
borderWidth: borderSize ?? borderWidth,
borderColor: borderColor ?? this.borderColor,
intensity: intensity ?? _intensity,
lightSource: lightSource ?? this.lightSource,
);
}