Margin.only constructor

const Margin.only({
  1. double left = 0.0,
  2. double top = 0.0,
  3. double right = 0.0,
  4. double bottom = 0.0,
})

Do that:

EdgeInsets.only(
 top: top,
 bottom: bottom,
 left: left,
 right: right,
)

Implementation

const Margin.only({
  double left = 0.0,
  double top = 0.0,
  double right = 0.0,
  double bottom = 0.0,
}) : super.only(left: left, top: top, right: right, bottom: bottom);