container method

Container container({
  1. Key? key,
  2. EdgeInsetsGeometry? padding,
  3. Decoration? foregroundDecoration,
  4. Matrix4? transform,
  5. BoxConstraints? constraints,
  6. Color? color,
  7. double? width,
  8. double? height,
  9. EdgeInsetsGeometry? margin,
  10. Decoration? decoration,
  11. Clip? clipBehavior,
  12. AlignmentGeometry? alignment,
})

Implementation

Container container({
  Key? key,
  EdgeInsetsGeometry? padding,
  Decoration? foregroundDecoration,
  Matrix4? transform,
  BoxConstraints? constraints,
  Color? color,
  double? width,
  double? height,
  EdgeInsetsGeometry? margin,
  Decoration? decoration,
  Clip? clipBehavior,
  AlignmentGeometry? alignment,
}) =>
    Container(
        key: key,
        foregroundDecoration: foregroundDecoration,
        clipBehavior: clipBehavior ?? Clip.none,
        transform: transform,
        constraints: constraints,
        alignment: alignment,
        color: decoration == null ? color : null,
        width: width,
        height: height,
        padding: padding,
        margin: margin,
        decoration: decoration,
        child: this);