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