copyFrom method

NeumorphicThemeData copyFrom({
  1. required NeumorphicThemeData other,
})

Create a copy of this theme With possibly new values given from the given second theme

Implementation

NeumorphicThemeData copyFrom({
  required NeumorphicThemeData other,
}) {
  return new NeumorphicThemeData(
    baseColor: other.baseColor,
    accentColor: other.accentColor,
    variantColor: other.variantColor,
    disableDepth: other.disableDepth,
    disabledColor: other.disabledColor,
    defaultTextColor: other.defaultTextColor,
    shadowDarkColor: other.shadowDarkColor,
    shadowLightColor: other.shadowLightColor,
    shadowDarkColorEmboss: other.shadowDarkColorEmboss,
    shadowLightColorEmboss: other.shadowLightColorEmboss,
    textTheme: other.textTheme,
    iconTheme: other.iconTheme,
    buttonStyle: other.buttonStyle,
    appBarTheme: other.appBarTheme,
    depth: other.depth,
    boxShape: other.boxShape,
    borderColor: other.borderColor,
    borderWidth: other.borderWidth,
    intensity: other.intensity,
    lightSource: other.lightSource,
  );
}