hideColumns method

  1. @override
void hideColumns(
  1. List<PlutoColumn> columns,
  2. bool hide, {
  3. bool notify = true,
})
inherited

Hide or show the columns with hide value.

When column.frozen.isFrozen in columns and hide is false, column.frozen is changed to PlutoColumnFrozen.none if the frozen column width constraint is narrow.

Implementation

@override
void hideColumns(
  List<PlutoColumn> columns,
  bool hide, {
  bool notify = true,
}) {
  if (columns.isEmpty) {
    return;
  }

  _updateLimitedHideColumns(columns, hide);

  _updateAfterHideColumn(columns: columns, notify: notify);
}