SliverToBoxAdapter constructor Null safety

const SliverToBoxAdapter(
  1. {Key? key,
  2. Widget? child}
)

Creates a sliver that contains a single box widget.

Implementation

const SliverToBoxAdapter({
  Key? key,
  Widget? child,
}) : super(key: key, child: child);