Margins.symmetric constructor

Margins.symmetric({
  1. double? horizontal,
  2. double? vertical,
  3. Unit? unit,
})

Analogous to EdgeInsets.symmetric

Implementation

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