toBuild method
dynamic
toBuild()
Implementation
toBuild() {
return Container(
key: key,
decoration: _decoration != null
? _decoration!.copyWith(color: _bgColor,
image: _decorationImage,
border: _border,
borderRadius: _radius,
boxShadow: _boxShadow,
gradient: _gradient,
backgroundBlendMode: _backgroundBlendMode,
shape: _shape,
)
: BoxDecoration(
color: _bgColor,
image: _decorationImage,
border: _border,
borderRadius: _radius,
boxShadow: _boxShadow,
gradient: _gradient,
backgroundBlendMode: _backgroundBlendMode,
shape: _shape,
),
foregroundDecoration: BoxDecoration(
color: _bgColorForeground,
image: _decorationImageForeground,
border: _borderForeground,
borderRadius: _radiusForeground,
boxShadow: _boxShadowForeground,
gradient: _gradientForeground,
backgroundBlendMode: _backgroundBlendModeForeground,
shape: _shapeForeground,
),
alignment: _alignment,
width: _width,
height: _height,
constraints: _constraints,
padding: EdgeInsets.fromLTRB(_paddingLeft,_paddingTop,_paddingRight,_paddingBottom),
margin: EdgeInsets.fromLTRB(_marginLeft,_marginTop,_marginRight,_marginBottom),
transform: _transform,
transformAlignment: _transformAlignment,
clipBehavior: _clipBehavior,
child: widget
);
}