Margins.only constructor

Margins.only({
  1. double? left,
  2. double? right,
  3. double? top,
  4. double? bottom,
  5. Unit? unit,
})

Analogous to EdgeInsets.only

Implementation

Margins.only(
    {double? left, double? right, double? top, double? bottom, Unit? unit})
    : left = Margin(left ?? 0, unit),
      right = Margin(right ?? 0, unit),
      top = Margin(top ?? 0, unit),
      bottom = Margin(bottom ?? 0, unit);