hideColumn method

  1. @override
void hideColumn(
  1. PlutoColumn column,
  2. bool hide, {
  3. bool notify = true,
})
inherited

Hide or show the column with hide value.

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

Implementation

@override
void hideColumn(
  PlutoColumn column,
  bool hide, {
  bool notify = true,
}) {
  if (column.hide == hide) {
    return;
  }

  if (limitHideColumn(column, hide)) {
    column.frozen = PlutoColumnFrozen.none;
  }

  column.hide = hide;

  _updateAfterHideColumn(columns: [column], notify: notify);
}