ContainerEx.square constructor
const
ContainerEx.square({
- Key? key,
- required double? size,
- Color? color,
- Widget? child,
- AlignmentGeometry? alignment,
- EdgeInsetsGeometry? padding,
- Decoration? decoration,
- Decoration? foregroundDecoration,
- BoxConstraints? constraints,
- EdgeInsetsGeometry? margin,
- Matrix4? transform,
- Clip clipBehavior = Clip.none,
- 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);