paddingOnly method

Widget paddingOnly({
  1. double? left,
  2. double? right,
  3. double? bottom,
  4. double? top,
})

Implementation

Widget paddingOnly(
        {double? left, double? right, double? bottom, double? top}) =>
    Padding(
        padding: EdgeInsets.only(
            top: top ?? 0,
            bottom: bottom ?? 0,
            right: right ?? 0,
            left: left ?? 0),
        child: this);