copyWith method

ZeroCardStyle copyWith({
  1. Color? backgroundColor,
  2. double? elevation,
  3. BorderRadiusGeometry? borderRadius,
  4. BorderSide? side,
  5. Color? shadowColor,
  6. EdgeInsetsGeometry? margin,
  7. bool? borderOnForeground,
})

create a copy of ZeroCardStyle with some fields replaced with the new values

Implementation

ZeroCardStyle copyWith({
  Color? backgroundColor,
  double? elevation,
  BorderRadiusGeometry? borderRadius,
  BorderSide? side,
  Color? shadowColor,
  EdgeInsetsGeometry? margin,
  bool? borderOnForeground,
}) =>
    ZeroCardStyle(
      backgroundColor: backgroundColor ?? this.backgroundColor,
      elevation: elevation ?? this.elevation,
      borderRadius: borderRadius ?? this.borderRadius,
      side: side ?? this.side,
      shadowColor: shadowColor ?? this.shadowColor,
      margin: margin ?? this.margin,
      borderOnForeground: borderOnForeground ?? this.borderOnForeground,
    );