copyWith method

FlutstrapRow copyWith({
  1. Key? key,
  2. List<Widget>? children,
  3. MainAxisAlignment? mainAxisAlignment,
  4. CrossAxisAlignment? crossAxisAlignment,
  5. MainAxisSize? mainAxisSize,
  6. TextDirection? textDirection,
  7. VerticalDirection? verticalDirection,
  8. TextBaseline? textBaseline,
  9. double? gap,
  10. double? minHeight,
  11. 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
  );
}