internalUseOfAz method

AzContainer internalUseOfAz({
  1. dynamic thisStyle,
  2. dynamic alignment,
  3. dynamic padding,
  4. dynamic color,
  5. dynamic decoration,
  6. Decoration? foregroundDecoration,
  7. dynamic width,
  8. dynamic height,
  9. dynamic constraints,
  10. dynamic margin,
  11. dynamic transform,
  12. dynamic transformAlignment,
  13. 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;
}