updateVisibilityLayout method
Set PlutoColumn.startPosition to PlutoColumn.width.
Set the horizontal position of the columns in the left area, center area, and right area according to the PlutoColumn.frozen value in PlutoColumn.startPosition.
This method should be called in an operation that dynamically changes the position of a column. Example) resizeColumn, frozenColumn, hideColumn...
notify
is called false in the normal case.
When notify
is called true,
the notifyListeners of scrollController is forcibly called when build is not triggered.
Implementation
@override
void updateVisibilityLayout({bool notify = false}) {
if (refColumns.isEmpty) return;
_updateColumnSize();
_updateColumnPosition();
updateScrollViewport();
if (notify) scroll.horizontal?.notifyListeners();
}