marginAll method

BoxBuilder marginAll({
  1. int? top,
  2. int? right,
  3. int? bottom,
  4. int? left,
})

Sets individual margin values.

Implementation

BoxBuilder marginAll({int? top, int? right, int? bottom, int? left}) {
  if (top != null) _marginTop = top;
  if (right != null) _marginRight = right;
  if (bottom != null) _marginBottom = bottom;
  if (left != null) _marginLeft = left;
  return this;
}