copyWith method

NeumorphicThemeData 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. NeumorphicBoxShape? boxShape,
  11. TextTheme? textTheme,
  12. NeumorphicStyle? buttonStyle,
  13. IconThemeData? iconTheme,
  14. NeumorphicAppBarThemeData? appBarTheme,
  15. NeumorphicStyle? 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

NeumorphicThemeData copyWith({
  Color? baseColor,
  Color? accentColor,
  Color? variantColor,
  Color? disabledColor,
  Color? shadowLightColor,
  Color? shadowDarkColor,
  Color? shadowLightColorEmboss,
  Color? shadowDarkColorEmboss,
  Color? defaultTextColor,
  NeumorphicBoxShape? boxShape,
  TextTheme? textTheme,
  NeumorphicStyle? buttonStyle,
  IconThemeData? iconTheme,
  NeumorphicAppBarThemeData? appBarTheme,
  NeumorphicStyle? defaultStyle,
  bool? disableDepth,
  double? depth,
  double? intensity,
  Color? borderColor,
  double? borderSize,
  LightSource? lightSource,
}) {
  return new NeumorphicThemeData(
    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 ?? this._depth,
    borderWidth: borderSize ?? this.borderWidth,
    borderColor: borderColor ?? this.borderColor,
    intensity: intensity ?? this._intensity,
    lightSource: lightSource ?? this.lightSource,
  );
}