padSliverBy method

Widget padSliverBy({
  1. double? left,
  2. double? top,
  3. double? right,
  4. double? bottom,
  5. double? horizontal,
  6. double? vertical,
})

Implementation

Widget padSliverBy({
  double? left,
  double? top,
  double? right,
  double? bottom,
  double? horizontal,
  double? vertical,
}) =>
    SliverPadding(
      padding: EdgeInsets.symmetric(
            horizontal: horizontal ?? 0.0,
            vertical: vertical ?? 0.0,
          ) +
          EdgeInsets.only(
            left: left ?? 0.0,
            top: top ?? 0.0,
            right: right ?? 0.0,
            bottom: bottom ?? 0.0,
          ),
      sliver: this,
    );