Scrollbar.ambient constructor

const Scrollbar.ambient({
  1. Key? key,
  2. required Widget child,
  3. required ScrollController? controller,
  4. EdgeInsets padding = EdgeInsets.zero,
})

The bar a scroll behavior adds, which has no other bar to hide.

Implementation

const Scrollbar.ambient({
  super.key,
  required this.child,
  required this.controller,
  this.padding = EdgeInsets.zero,
}) : thumbVisibility = false,
     onScrub = null,
     _hidesAmbientBar = false;