only static method
Create responsive padding with individual values
Example:
padding: ResponsiveEdgeInsets.only(
left: 2,
top: 3,
right: 2,
bottom: 1,
)
Implementation
static EdgeInsets only({
double? left,
double? top,
double? right,
double? bottom,
}) {
return EdgeInsets.only(
left: left?.w ?? 0,
top: top?.h ?? 0,
right: right?.w ?? 0,
bottom: bottom?.h ?? 0,
);
}