copyWith method

FlutstrapContainer copyWith({
  1. Key? key,
  2. Widget? child,
  3. bool? fluid,
  4. EdgeInsetsGeometry? padding,
  5. EdgeInsetsGeometry? margin,
  6. Color? color,
  7. Decoration? decoration,
  8. double? width,
  9. double? height,
  10. AlignmentGeometry? alignment,
  11. Clip? clipBehavior,
})

Implementation

FlutstrapContainer copyWith({
  Key? key,
  Widget? child,
  bool? fluid,
  EdgeInsetsGeometry? padding,
  EdgeInsetsGeometry? margin,
  Color? color,
  Decoration? decoration,
  double? width,
  double? height,
  AlignmentGeometry? alignment,
  Clip? clipBehavior,
}) {
  return FlutstrapContainer(
    key: key ?? this.key,
    child: child ?? this.child,
    fluid: fluid ?? this.fluid,
    padding: padding ?? this.padding,
    margin: margin ?? this.margin,
    color: color ?? this.color,
    decoration: decoration ?? this.decoration,
    width: width ?? this.width,
    height: height ?? this.height,
    alignment: alignment ?? this.alignment,
    clipBehavior: clipBehavior ?? this.clipBehavior,
  );
}