FleetContainer constructor

FleetContainer({
  1. Key? key,
  2. AlignmentGeometry? alignment,
  3. EdgeInsetsGeometry? padding,
  4. Color? color,
  5. Decoration? decoration,
  6. Decoration? foregroundDecoration,
  7. EdgeInsetsGeometry? margin,
  8. Matrix4? transform,
  9. AlignmentGeometry? transformAlignment,
  10. double? width,
  11. double? height,
  12. BoxConstraints? constraints,
  13. Clip clipBehavior = Clip.none,
  14. Widget? child,
})

Corresponding constructor to Container.

Implementation

FleetContainer({
  super.key,
  this.alignment,
  this.padding,
  this.color,
  this.decoration,
  this.foregroundDecoration,
  this.margin,
  this.transform,
  this.transformAlignment,
  double? width,
  double? height,
  BoxConstraints? constraints,
  this.clipBehavior = Clip.none,
  this.child,
}) : constraints = (width != null || height != null)
          ? constraints?.tighten(width: width, height: height) ??
              BoxConstraints.tightFor(width: width, height: height)
          : constraints;