Widget.container constructor Null safety

const Widget.container(
  1. {Key? key,
  2. Alignment? alignment,
  3. EdgeInsets? padding,
  4. Color? color,
  5. Decoration? decoration,
  6. Decoration? foregroundDecoration,
  7. double? width,
  8. double? height,
  9. BoxConstraints? constraints,
  10. EdgeInsets? margin,
  11. @matrixConverter Matrix4? transform,
  12. Alignment? transformAlignment,
  13. Widget? child,
  14. @Default(Clip.none) Clip clipBehavior}
)

Implementation

const factory Widget.container({
  Key? key,
  Alignment? alignment,
  EdgeInsets? padding,
  Color? color,
  Decoration? decoration,
  Decoration? foregroundDecoration,
  double? width,
  double? height,
  BoxConstraints? constraints,
  EdgeInsets? margin,
  @matrixConverter Matrix4? transform,
  Alignment? transformAlignment,
  Widget? child,
  @Default(Clip.none) Clip clipBehavior,
}) = Container;