cPadOnly method
Adds padding to specific sides of the widget (left, top, right, bottom).
Parameters:
l
: The amount of padding on the left side.t
: The amount of padding on the top side.r
: The amount of padding on the right side.b
: The amount of padding on the bottom side.
Returns: A new widget with the specified padding on the specified sides.
Implementation
Widget cPadOnly({
double l = 0.0,
double t = 0.0,
double r = 0.0,
double b = 0.0,
}) =>
Padding(
padding: EdgeInsets.only(
top: t,
left: l,
right: r,
bottom: b,
),
child: this,
);