getScrollControllerFor method

ScrollController? getScrollControllerFor({
  1. required Axis axis,
})

Get a ScrollController for the specified axis.

Implementation

ScrollController? getScrollControllerFor({required Axis axis}) {
  return axis == Axis.horizontal
      ? horizontalScrollController
      : verticalScrollController;
}