cToSliver property

Widget cToSliver

Converts the widget into a SliverToBoxAdapter.

This extension allows you to use a regular Widget within a SliverList, SliverGrid, or other Sliver-based widgets by wrapping it in a SliverToBoxAdapter.

Implementation

Widget get cToSliver => SliverToBoxAdapter(
      child: this,
    );