notifierNames static method

Map<int, String> notifierNames(
  1. PlutoGridStateManager stateManager
)

Implementation

static Map<int, String> notifierNames(PlutoGridStateManager stateManager) {
  return {
    /// pluto_change_notifier
    stateManager.notifyListeners.hashCode: 'notifyListeners',
    stateManager.notifyListenersOnPostFrame.hashCode:
        'notifyListenersOnPostFrame',

    /// cell_state
    stateManager.setCurrentCellPosition.hashCode: 'setCurrentCellPosition',
    stateManager.updateCurrentCellPosition.hashCode:
        'updateCurrentCellPosition',
    stateManager.clearCurrentCell.hashCode: 'clearCurrentCell',
    stateManager.setCurrentCell.hashCode: 'setCurrentCell',

    /// column_group_state
    stateManager.setShowColumnGroups.hashCode: 'setShowColumnGroups',
    stateManager.removeColumnsInColumnGroup.hashCode:
        'removeColumnsInColumnGroup',

    /// column_state
    stateManager.toggleFrozenColumn.hashCode: 'toggleFrozenColumn',
    stateManager.toggleSortColumn.hashCode: 'toggleSortColumn',
    stateManager.insertColumns.hashCode: 'insertColumns',
    stateManager.removeColumns.hashCode: 'removeColumns',
    stateManager.moveColumn.hashCode: 'moveColumn',
    stateManager.sortAscending.hashCode: 'sortAscending',
    stateManager.sortDescending.hashCode: 'sortDescending',
    stateManager.sortBySortIdx.hashCode: 'sortBySortIdx',
    stateManager.hideColumn.hashCode: 'hideColumn',

    /// dragging_row_state
    stateManager.setIsDraggingRow.hashCode: 'setIsDraggingRow',
    stateManager.setDragRows.hashCode: 'setDragRows',
    stateManager.setDragTargetRowIdx.hashCode: 'setDragTargetRowIdx',

    /// editing_state
    stateManager.setEditing.hashCode: 'setEditing',
    stateManager.setAutoEditing.hashCode: 'setAutoEditing',
    stateManager.pasteCellValue.hashCode: 'pasteCellValue',
    stateManager.changeCellValue.hashCode: 'changeCellValue',

    /// filtering_row_state
    stateManager.setFilter.hashCode: 'setFilter',

    /// focus_state
    stateManager.setKeepFocus.hashCode: 'setKeepFocus',

    /// grid_state
    stateManager.resetCurrentState.hashCode: 'resetCurrentState',

    /// layout_state
    stateManager.setShowColumnTitle.hashCode: 'setShowColumnTitle',
    stateManager.setShowColumnFooter.hashCode: 'setShowColumnFooter',
    stateManager.setShowColumnFilter.hashCode: 'setShowColumnFilter',
    stateManager.setShowLoading.hashCode: 'setShowLoading',
    stateManager.notifyChangedShowFrozenColumn.hashCode:
        'notifyChangedShowFrozenColumn',

    /// pagination_state
    stateManager.setPageSize.hashCode: 'setPageSize',
    stateManager.setPage.hashCode: 'setPage',

    /// row_group_state
    stateManager.setRowGroup.hashCode: 'setRowGroup',
    stateManager.toggleExpandedRowGroup.hashCode: 'toggleExpandedRowGroup',

    /// row_state
    stateManager.setRowChecked.hashCode: 'setRowChecked',
    stateManager.insertRows.hashCode: 'insertRows',
    stateManager.prependRows.hashCode: 'prependRows',
    stateManager.appendRows.hashCode: 'appendRows',
    stateManager.removeCurrentRow.hashCode: 'removeCurrentRow',
    stateManager.removeRows.hashCode: 'removeRows',
    stateManager.removeAllRows.hashCode: 'removeAllRows',
    stateManager.moveRowsByIndex.hashCode: 'moveRowsByIndex',
    stateManager.toggleAllRowChecked.hashCode: 'toggleAllRowChecked',

    /// selecting_state
    stateManager.setSelecting.hashCode: 'setSelecting',
    stateManager.setSelectingMode.hashCode: 'setSelectingMode',
    stateManager.setCurrentSelectingPosition.hashCode:
        'setCurrentSelectingPosition',
    stateManager.setCurrentSelectingRowsByRange.hashCode:
        'setCurrentSelectingRowsByRange',
    stateManager.clearCurrentSelecting.hashCode: 'clearCurrentSelecting',
    stateManager.toggleSelectingRow.hashCode: 'toggleSelectingRow',
    stateManager.handleAfterSelectingRow.hashCode: 'handleAfterSelectingRow',
  };
}