copyWith method

FlutstrapCol copyWith({
  1. Key? key,
  2. Widget? child,
  3. FSColSize? size,
  4. EdgeInsetsGeometry? padding,
  5. EdgeInsetsGeometry? margin,
  6. AlignmentGeometry? alignment,
  7. Color? color,
  8. Decoration? decoration,
  9. bool? flexible,
})

Implementation

FlutstrapCol copyWith({
  Key? key,
  Widget? child,
  FSColSize? size,
  EdgeInsetsGeometry? padding,
  EdgeInsetsGeometry? margin,
  AlignmentGeometry? alignment,
  Color? color,
  Decoration? decoration,
  bool? flexible, // FIX: Include flexible parameter
}) {
  return FlutstrapCol(
    key: key ?? this.key,
    child: child ?? this.child,
    size: size ?? this.size,
    padding: padding ?? this.padding,
    margin: margin ?? this.margin,
    alignment: alignment ?? this.alignment,
    color: color ?? this.color,
    decoration: decoration ?? this.decoration,
    flexible: flexible ?? this.flexible, // FIX: Copy flexible parameter
  );
}