scrollToHorizontalOffset method

Future<void> scrollToHorizontalOffset(
  1. double offset,
  2. {bool canAnimate = false}

Scroll the horizontal scrollbar from current value to the given value.

If you want animation on scrolling, you can pass true as canAnimate argument.


Future<void> scrollToHorizontalOffset(double offset,
    {bool canAnimate = false}) async {
  if (_dataGridStateDetails != null) {
    final DataGridConfiguration dataGridSettings = _dataGridStateDetails!();
    return grid_helper.scrollHorizontal(dataGridSettings, offset, canAnimate);