copyWith method
DivStyle
copyWith({
- AlignmentGeometry? align,
- List<
double> ? padding, - List<
double> ? margin, - double? width,
- double? height,
- Color? color,
- BoxBorder? border,
- BorderRadius? radius,
- DecorationImage? image,
- List<
BoxShadow> ? boxShadow, - Gradient? gradient,
- Clip? clip,
- MainAxisAlignment? mainAlign,
- MainAxisSize? mainSize,
- CrossAxisAlignment? crossAlign,
Implementation
DivStyle copyWith({
AlignmentGeometry? align,
List<double>? padding,
List<double>? margin,
double? width,
double? height,
Color? color,
BoxBorder? border,
BorderRadius? radius,
DecorationImage? image,
List<BoxShadow>? boxShadow,
Gradient? gradient,
Clip? clip,
MainAxisAlignment? mainAlign,
MainAxisSize? mainSize,
CrossAxisAlignment? crossAlign,
}){
return DivStyle(
align: align ?? this.align,
padding: padding ?? this.padding,
margin: margin ?? this.margin,
width: width ?? this.width,
height: height ?? this.height,
color: color ?? this.color,
border: border ?? this.border,
radius: radius ?? this.radius,
image: image ?? this.image,
boxShadow: boxShadow ?? this.boxShadow,
gradient: gradient ?? this.gradient,
clip: clip ?? this.clip,
mainAlign: mainAlign ?? this.mainAlign,
mainSize: mainSize ?? this.mainSize,
crossAlign: crossAlign ?? this.crossAlign,
);
}