copyWith method
FlutstrapRow
copyWith({
- Key? key,
- List<
Widget> ? children, - MainAxisAlignment? mainAxisAlignment,
- CrossAxisAlignment? crossAxisAlignment,
- MainAxisSize? mainAxisSize,
- TextDirection? textDirection,
- VerticalDirection? verticalDirection,
- TextBaseline? textBaseline,
- double? gap,
- double? minHeight,
- double? maxHeight,
Implementation
FlutstrapRow copyWith({
Key? key,
List<Widget>? children,
MainAxisAlignment? mainAxisAlignment,
CrossAxisAlignment? crossAxisAlignment,
MainAxisSize? mainAxisSize,
TextDirection? textDirection,
VerticalDirection? verticalDirection,
TextBaseline? textBaseline,
double? gap,
double? minHeight, // FIX: Include new parameters
double? maxHeight, // FIX: Include new parameters
}) {
return FlutstrapRow(
key: key ?? this.key,
children: children ?? this.children,
mainAxisAlignment: mainAxisAlignment ?? this.mainAxisAlignment,
crossAxisAlignment: crossAxisAlignment ?? this.crossAxisAlignment,
mainAxisSize: mainAxisSize ?? this.mainAxisSize,
textDirection: textDirection ?? this.textDirection,
verticalDirection: verticalDirection ?? this.verticalDirection,
textBaseline: textBaseline ?? this.textBaseline,
gap: gap ?? this.gap,
minHeight: minHeight ?? this.minHeight, // FIX: Copy new parameters
maxHeight: maxHeight ?? this.maxHeight, // FIX: Copy new parameters
);
}