Container constructor
const
Container({
- Key? key,
- Widget? child,
- Color? color,
- int? width,
- int? height,
- EdgeInsets? padding,
- EdgeInsets? margin,
- Border? border,
Creates a Container with optional styling and a single child.
Implementation
const Container({
super.key,
Widget? child,
this.color,
this.width,
this.height,
this.padding,
this.margin,
this.border,
}) : super(child: child ?? const SizedBox());