Margin.only constructor
const
Margin.only({})
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);