Widget.scrollBar constructor Null safety

const Widget.scrollBar(
  1. {Key? key,
  2. required Widget child,
  3. bool? thumbVisibility,
  4. bool? trackVisibility,
  5. double? thickness,
  6. Radius? radius,
  7. bool? interactive,
  8. ScrollbarOrientation? scrollbarOrientation}
)

Implementation

const factory Widget.scrollBar({
  Key? key,
  required Widget child,
  bool? thumbVisibility,
  bool? trackVisibility,
  double? thickness,
  Radius? radius,
  bool? interactive,
  ScrollbarOrientation? scrollbarOrientation,
}) = ScrollBar;