copyWith method

DivStyle copyWith({
  1. AlignmentGeometry? align,
  2. List<double>? padding,
  3. List<double>? margin,
  4. double? width,
  5. double? height,
  6. Color? color,
  7. BoxBorder? border,
  8. BorderRadius? radius,
  9. DecorationImage? image,
  10. List<BoxShadow>? boxShadow,
  11. Gradient? gradient,
  12. Clip? clip,
  13. MainAxisAlignment? mainAlign,
  14. MainAxisSize? mainSize,
  15. 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,
  );
}