buildSheet method
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,
);
}