PaddingWrapper constructor

const PaddingWrapper({
  1. Key? key,
  2. required Widget child,
  3. 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
});