copyWith method
FlutstrapCol
copyWith({
- Key? key,
- Widget? child,
- FSColSize? size,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- AlignmentGeometry? alignment,
- Color? color,
- Decoration? decoration,
- 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
);
}