Container constructor Null safety

const 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. Clip clipBehavior}
)

Implementation

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