ContainerEx.square constructor

const ContainerEx.square({
  1. Key? key,
  2. required double? size,
  3. Color? color,
  4. Widget? child,
  5. AlignmentGeometry? alignment,
  6. EdgeInsetsGeometry? padding,
  7. Decoration? decoration,
  8. Decoration? foregroundDecoration,
  9. BoxConstraints? constraints,
  10. EdgeInsetsGeometry? margin,
  11. Matrix4? transform,
  12. Clip clipBehavior = Clip.none,
  13. Brightness? brightness,
})

Implementation

const ContainerEx.square({
  Key? key,
  required this.size,
  this.color,
  this.child,
  this.alignment,
  this.padding,
  this.decoration,
  this.foregroundDecoration,
  this.constraints,
  this.margin,
  this.transform,
  this.clipBehavior = Clip.none,
  this.brightness,
})  : this.isSquare = true,
      this.height = null,
      this.width = null,
      super(key: key);