container method
Widget
container({
- double? width,
- double? height,
- Color? color,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- BorderRadius? borderRadius,
- Border? border,
Adds container wrapper
Implementation
Widget container({
double? width,
double? height,
Color? color,
EdgeInsetsGeometry? padding,
EdgeInsetsGeometry? margin,
BorderRadius? borderRadius,
Border? border,
}) =>
Container(
width: width,
height: height,
color: color,
padding: padding,
margin: margin,
decoration: borderRadius != null || border != null
? BoxDecoration(
color: color,
borderRadius: borderRadius,
border: border,
)
: null,
child: this,
);