scrollbar method

Niku scrollbar({
  1. ScrollController? controller,
  2. bool? isAlwaysShown,
  3. bool? showTrackOnHover,
  4. double? hoverThickness,
  5. double? thickness,
  6. Radius? radius,
  7. ScrollNotificationPredicate? notificationPredicate,
})

Add scrollbar to widget scrollable

Example usage

Niku()
  .scrollbar();

Implementation

Niku scrollbar({
  ScrollController? controller,
  bool? isAlwaysShown,
  bool? showTrackOnHover,
  double? hoverThickness,
  double? thickness,
  Radius? radius,
  ScrollNotificationPredicate? notificationPredicate,
}) {
  _widget = Scrollbar(
    child: _widget,
    controller: controller,
    isAlwaysShown: isAlwaysShown,
    hoverThickness: hoverThickness,
    thickness: thickness,
    radius: radius,
    notificationPredicate: notificationPredicate,
  );

  return this;
}