container method

Widget container({
  1. double? width,
  2. double? height,
  3. Color? color,
  4. EdgeInsetsGeometry? padding,
  5. EdgeInsetsGeometry? margin,
  6. BorderRadius? borderRadius,
  7. 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,
    );