PaddingWrapper.all constructor
Factory constructor for applying the same padding to all sides.
The padding
parameter specifies the uniform padding to apply.
Example usage:
PaddingWrapper.all(
padding: 20.0,
child: Text('Uniformly Padded Text'),
);
Implementation
factory PaddingWrapper.all({
required Widget child,
double padding = 16.0,
}) {
return PaddingWrapper(
padding: EdgeInsets.all(padding),
child: child,
);
}