PaddingWrapper constructor
const
PaddingWrapper({
- Key? key,
- required Widget child,
- EdgeInsetsGeometry padding = const EdgeInsets.all(16.0),
Creates a PaddingWrapper with customizable padding.
The child
parameter is required and must not be null.
The padding
parameter defaults to 16.0 pixels on all sides if not specified.
Implementation
const PaddingWrapper({
super.key,
required this.child,
this.padding = const EdgeInsets.all(16.0), // Default padding value
});