buildSheet method

Widget buildSheet(
  1. BuildContext context,
  2. Widget child
)

Implementation

Widget buildSheet(BuildContext context, Widget child) {
  SheetPhysics? effectivePhysics = SnapSheetPhysics(
    stops: stops ?? <double>[0, 1],
    parent: physics,
  );
  if (!draggable) {
    effectivePhysics = const NeverDraggableSheetPhysics();
  }
  return Sheet.raw(
    initialExtent: initialExtent,
    decorationBuilder: decorationBuilder,
    fit: fit,
    physics: effectivePhysics,
    controller: sheetController,
    child: child,
  );
}