withAllPadding method
Uses the RawSpacings available in the context
to wrap all insets of this widget in a Padding with the
specific spacing
See also:
- Spacing;
- SpacingHelpers - helpers for EdgeInsets and SizedBox.
Implementation
Padding withAllPadding(BuildContext context, Spacing spacing) => Padding(
padding: context.allInsets(spacing),
child: this,
);