internalUseOfAz method
AzContainer
internalUseOfAz({
- dynamic thisStyle,
- dynamic alignment,
- dynamic padding,
- dynamic color,
- dynamic decoration,
- Decoration? foregroundDecoration,
- dynamic width,
- dynamic height,
- dynamic constraints,
- dynamic margin,
- dynamic transform,
- dynamic transformAlignment,
- dynamic clipBehavior,
Implementation
AzContainer internalUseOfAz({thisStyle,
alignment,
padding,
color,
decoration,
Decoration? foregroundDecoration,
width,
height,
constraints,
margin,
transform,
transformAlignment,
clipBehavior,
}){
_alignment = alignment;
if(padding != null){
EdgeInsets p = padding;
_paddingLeft = p.left;
_paddingTop = p.top;
_paddingBottom = p.bottom;
_paddingRight = p.right;
}
_bgColor = color;
_decoration = decoration;
// foregroundDecoration;
if(foregroundDecoration != null){
BoxDecoration _foregroundDecoration = foregroundDecoration as BoxDecoration;
_bgColorForeground = _foregroundDecoration.color;
_decorationImageForeground = _foregroundDecoration.image;
_borderForeground = _foregroundDecoration.border;
_radiusForeground = _foregroundDecoration.borderRadius;
_boxShadowForeground = _foregroundDecoration.boxShadow;
_gradientForeground = _foregroundDecoration.gradient;
_backgroundBlendModeForeground = _foregroundDecoration.backgroundBlendMode;
_shapeForeground = _foregroundDecoration.shape;
}
_height = height;
_width = width;
_constraints = constraints;
if(margin != null){
EdgeInsets m = margin;
_paddingLeft = m.left;
_paddingTop = m.top;
_paddingBottom = m.bottom;
_paddingRight = m.right;
}
_transform = transform;
_transformAlignment = transformAlignment;
_clipBehavior = clipBehavior;
return this;
}