copyWith method

NeumorphismThemeData copyWith({
  1. Color? baseColor,
  2. Color? accentColor,
  3. Color? variantColor,
  4. Color? disabledColor,
  5. Color? shadowLightColor,
  6. Color? shadowDarkColor,
  7. Color? shadowLightColorEmboss,
  8. Color? shadowDarkColorEmboss,
  9. Color? defaultTextColor,
  10. NeumorphismBoxShape? boxShape,
  11. TextTheme? textTheme,
  12. NeumorphismStyle? buttonStyle,
  13. IconThemeData? iconTheme,
  14. NeumorphismAppBarThemeData? appBarTheme,
  15. NeumorphismStyle? defaultStyle,
  16. bool? disableDepth,
  17. double? depth,
  18. double? intensity,
  19. Color? borderColor,
  20. double? borderSize,
  21. 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,
  );
}