sliverPadding method

Widget sliverPadding({
  1. Key? key,
  2. EdgeInsetsGeometry? value,
  3. double? all,
  4. double? horizontal,
  5. double? vertical,
  6. double? top,
  7. double? bottom,
  8. double? left,
  9. double? right,
})

Sliver 内间距

Implementation

Widget sliverPadding({
  Key? key,
  EdgeInsetsGeometry? value,
  double? all,
  double? horizontal,
  double? vertical,
  double? top,
  double? bottom,
  double? left,
  double? right,
}) =>
    SliverPadding(
      key: key,
      padding: value ??
          EdgeInsets.only(
            top: top ?? vertical ?? all ?? 0.0,
            bottom: bottom ?? vertical ?? all ?? 0.0,
            left: left ?? horizontal ?? all ?? 0.0,
            right: right ?? horizontal ?? all ?? 0.0,
          ),
      sliver: this,
    );