marginOnly method
Adds margin to specific sides
Example:
Text('Hello').marginOnly(left: 16, top: 8)
Implementation
Widget marginOnly({
double left = 0,
double top = 0,
double right = 0,
double bottom = 0,
}) {
return Container(
margin: EdgeInsets.only(
left: left,
top: top,
right: right,
bottom: bottom,
),
child: this,
);
}