SpacedList.slivers constructor

SpacedList.slivers({
  1. required double spacing,
  2. required List<Widget> slivers,
  3. Color? color,
})

Creates a GappedSlivers with spacing between slivers.

The spacing parameter defines the size of the gap between slivers. It must be non-null and positive.

The optional color parameter is useful for debugging to visualize where gaps are placed.

Implementation

factory SpacedList.slivers({
  required double spacing,
  required List<Widget> slivers,
  Color? color,
}) =>
    GappedSlivers(spacing: spacing, slivers: slivers, color: color);