marginOnly method

XuBox marginOnly(
  1. {double left = 0.0,
  2. double right = 0.0,
  3. double top = 0.0,
  4. double bottom = 0.0}
)

Empty space to surround the decoration and child.Creates insets with only the given values non-zero.

Implementation

XuBox marginOnly({double left = 0.0,double right = 0.0,double top = 0.0,double bottom = 0.0}) => this.._margin = EdgeInsets.only(left: left,right:right,top: top,bottom: bottom);