shouldAlwaysShowScrollbar property

bool shouldAlwaysShowScrollbar
final

Toggles the scrollbar visibility.

When set to false, the scrollbar appears only when scrolling else the scrollbar fades out. When true, the scrollbar will never fade out and will always be visible when the items are overflown.

Defaults to false.

Widget build(BuildContext context) {
  return SfCartesianChart(
    legend:Legend(
      isVisible: true,
      shouldAlwaysShowScrollbar: true
    )
  );
}

Implementation

final bool shouldAlwaysShowScrollbar;