paddingOnly method
Implementation
Widget paddingOnly({double left = 0, double right = 0, double top = 0, double bottom = 0}) {
return Container(
color: Colors.transparent,
child: Padding(
padding: EdgeInsets.only(
left: left != 0 ? left : 0,
right: right != 0 ? right : 0,
top: top != 0 ? top : 0,
bottom: bottom != 0 ? bottom : 0,
),
child: this,
),
);
}