copyWith method
ZeroCardStyle
copyWith({
- Color? backgroundColor,
- double? elevation,
- BorderRadiusGeometry? borderRadius,
- BorderSide? side,
- Color? shadowColor,
- EdgeInsetsGeometry? margin,
- 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,
);