import assert from "assert" ; import { Color } from "../dart-ui/color" ; import { double } from "../dart/double" ; import { AlignmentGeometry } from "../painting/alignment-geomatry" ; import { BoxDecoration } from "../painting/box-decoration" ; import { Decoration } from "../painting/decoration" ; import { EdgeInsetsGeometry } from "../painting/edge-insets-geometry" ; import { Matrix4 } from "../vector-math-64/matrix4" ; import { Widget } from "./widget" ; /**
 * https://api.flutter.dev/flutter/widgets/Container-class.html
 */ export class Container extends Widget { child : Widget ; alignment : AlignmentGeometry ; width : double ; height : double ; padding : EdgeInsetsGeometry ; color : Color ; decoration : Decoration ; foregroundDecoration : Decoration ; margin : EdgeInsetsGeometry ; transform : Matrix4 ; constructor ( args ? ) { super ( ) ; assert ( ! args ?. decoration || ! args ?. color , `Cannot provide both a color and a decoration\n
        To provide both, use "decoration: BoxDecoration(color: color)".` ) ; this . child = args ?. child ; this . color = args ?. color ; this . width = args ?. width ; this . height = args ?. height ; this . margin = args ?. margin ; this . padding = args ?. padding ; this . decoration = args ?. decoration ; } }