PlutoGridStateManager class
It manages the state of the PlutoGrid and contains methods used by the grid.
An instance of PlutoGridStateManager can be returned
through the onLoaded
callback of the PlutoGrid constructor.
PlutoGridStateManager stateManager;
PlutoGrid(
onLoaded: (PlutoGridOnLoadedEvent event) => stateManager = event.stateManager,
)
It is created when PlutoGrid is first created,
and the state required for the grid is set for List<PlutoRow> rows
.
PlutoGridStateManager.initializeRows, which operates at this time, works synchronously,
and if there are many rows, the UI may freeze when starting the grid.
To prevent UI from freezing when passing many rows to PlutoGrid, you can set rows asynchronously as follows. After passing an empty list when creating PlutoGrid, add rows initialized with initializeRowsAsync as shown below.
PlutoGridStateManager.initializeRowsAsync(
columns,
fetchedRows,
).then((value) {
stateManager.refRows.addAll(FilteredList(initialList: value));
stateManager.notifyListeners();
});
- Inheritance
-
- Object
- ChangeNotifier
- PlutoChangeNotifier
- PlutoGridStateChangeNotifier
- PlutoGridStateManager
Constructors
-
PlutoGridStateManager({required List<
PlutoColumn> columns, required List<PlutoRow> rows, required FocusNode gridFocusNode, required PlutoGridScrollController scroll, List<PlutoColumnGroup> ? columnGroups, PlutoOnChangedEventCallback? onChanged, PlutoOnSelectedEventCallback? onSelected, PlutoOnSortedEventCallback? onSorted, PlutoOnRowCheckedEventCallback? onRowChecked, PlutoOnRowDoubleTapEventCallback? onRowDoubleTap, PlutoOnRowSecondaryTapEventCallback? onRowSecondaryTap, PlutoOnRowsMovedEventCallback? onRowsMoved, PlutoOnColumnsMovedEventCallback? onColumnsMoved, PlutoRowColorCallback? rowColorCallback, CreateHeaderCallBack? createHeader, PlutoColumnMenuDelegate? columnMenuDelegate, PlutoChangeNotifierFilterResolver? notifierFilterResolver, PlutoGridConfiguration configuration = const PlutoGridConfiguration(), PlutoGridMode? mode})
Properties
- activatedColumnsAutoSize → bool
-
Whether columnsAutoSizeMode should be applied while columnsAutoSizeMode is enabled.
no setterinherited
- autoEditing → bool
-
Automatically set to editing state when cell is selected.
no setterinherited
-
bodyColumnIndexes
→ List<
int> -
Body column Index List.
no setterinherited
-
bodyColumns
→ List<
PlutoColumn> -
Body columns.
no setterinherited
- bodyColumnsWidth → double
-
Width of the body column.
no setterinherited
- bodyDownScrollOffset → double
-
no setterinherited
- bodyLeftOffset → double
-
no setterinherited
- bodyLeftScrollOffset → double
-
no setterinherited
- bodyRightOffset → double
-
no setterinherited
- bodyRightScrollOffset → double
-
no setterinherited
- bodyTopOffset → double
-
no setterinherited
- bodyUpScrollOffset → double
-
no setterinherited
- canRowDrag → bool
-
no setterinherited
-
checkedRows
→ List<
PlutoRow> -
no setterinherited
- columnBottomOffset → double
-
no setterinherited
- columnFilterHeight → double
-
no setterinherited
-
getter/setter pairinherited
- columnGroupHeight → double
-
no setterinherited
-
columnGroups
→ List<
PlutoColumnGroup> -
no setterinherited
- columnHeight → double
-
no setterinherited
-
columnIndexes
→ List<
int> -
Column index list.
no setterinherited
-
columnIndexesByShowFrozen
→ List<
int> -
Column Index List by frozen Column
no setterinherited
-
columnIndexesForShowFrozen
→ List<
int> -
List of column indexes in which the sequence is maintained
while the frozen column is visible.
no setterinherited
- columnMenuDelegate → PlutoColumnMenuDelegate
-
finalinherited
- columnRowContainerHeight → double
-
no setterinherited
-
columns
→ List<
PlutoColumn> -
Columns provided at grid start.
no setterinherited
- columnsAutoSizeMode → PlutoAutoSizeMode
-
Automatically adjust the column width at the start of the grid
or when the grid width is changed.
no setterinherited
- columnSizeConfig → PlutoGridColumnSizeConfig
-
Refers to the value set in PlutoGridConfiguration.
no setterinherited
- columnsResizeMode → PlutoResizeMode
-
Condition for changing column width.
no setterinherited
- columnsWidth → double
-
Width of the entire column.
no setterinherited
- configuration → PlutoGridConfiguration
-
no setterinherited
- correctHorizontalOffset → double
-
no setterinherited
-
finalinherited
- createHeader → CreateHeaderCallBack?
-
finalinherited
- currentCell → PlutoCell?
-
currently selected cell.
no setterinherited
- currentCellPosition → PlutoGridCellPosition?
-
The position index value of the currently selected cell.
no setterinherited
- currentColumn → PlutoColumn?
-
Column of currently selected cell.
no setterinherited
- currentColumnField → String?
-
Column field name of currently selected cell.
no setterinherited
- currentRow → PlutoRow?
-
Row of currently selected cell.
no setterinherited
- currentRowIdx → int?
-
Row index of currently selected cell.
no setterinherited
- currentSelectingPosition → PlutoGridCellPosition?
-
Current position of multi-select cell.
Calculate the currently selected cell and its multi-selection range.
no setterinherited
-
currentSelectingPositionList
→ List<
PlutoGridSelectingCellPosition> -
Position list of currently selected.
Only valid in PlutoGridSelectingMode.cell.
no setterinherited
-
currentSelectingRows
→ List<
PlutoRow> -
Rows of currently selected.
Only valid in PlutoGridSelectingMode.row.
no setterinherited
- currentSelectingText → String
-
String of multi-selected cells.
Preserves the structure of the cells selected by the tabs and the enter key.
no setterinherited
- directionalScrollEdgeOffset → Offset
-
no setterinherited
-
dragRows
→ List<
PlutoRow> -
no setterinherited
- dragTargetRowIdx → int?
-
no setterinherited
- enableColumnsAutoSize → bool
-
Whether columnsAutoSizeMode is enabled.
no setterinherited
- enabledRowGroups → bool
-
If PlutoRowGroupDelegate is set for row grouping,
return the active status of the actual grouping function.
no setterinherited
- eventManager → PlutoGridEventManager?
-
no setterinherited
- filterOnlyEvent → bool
-
To delegate filtering processing in the PlutoInfinityScrollRows or PlutoLazyPagination widget
Whether to override the default filtering processing.
If this value is true,
the default filtering processing of PlutoGrid is ignored and only events are issued.
PlutoGridSetColumnFilterEvent
no setterinherited
-
filterRows
→ List<
PlutoRow> -
no setterinherited
- firstCell → PlutoCell?
-
no setterinherited
-
grid footer height
getter/setter pairinherited
-
no setterinherited
- getSortedColumn → PlutoColumn?
-
no setterinherited
- gridFocusNode → FocusNode
-
FocusNode to control keyboard input.
finalinherited
- gridGlobalOffset → Offset?
-
Global offset of Grid.
no setterinherited
-
gridKey
→ GlobalKey<
State< StatefulWidget> > -
finalinherited
- hasCheckedRow → bool
-
no setterinherited
- hasColumnGroups → bool
-
no setterinherited
- hasCurrentSelectingPosition → bool
-
no setterinherited
- hasFilter → bool
-
no setterinherited
- hasFocus → bool
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasLeftFrozenColumns → bool
-
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- hasRightFrozenColumns → bool
-
no setterinherited
- hasRowGroups → bool
-
Whether to set PlutoRowGroupDelegate for row grouping.
no setterinherited
- hasSortedColumn → bool
-
no setterinherited
- hasUnCheckedRow → bool
-
no setterinherited
- headerBottomOffset → double
-
no setterinherited
- headerHeight ↔ double
-
grid header height
getter/setter pairinherited
- isDraggingRow → bool
-
no setterinherited
- isEditing → bool
-
Editing status of the current.
no setterinherited
- isHorizontalOverScrolled → bool
-
no setterinherited
- isLTR → bool
-
no setterinherited
- isPaginated → bool
-
no setterinherited
- isRTL → bool
-
no setterinherited
- isSelecting → bool
-
Multi-selection state.
no setterinherited
-
iterateAllMainRowGroup
→ Iterable<
PlutoRow> -
Regardless of filtering or pagination applied,
no setterinherited
-
iterateAllRow
→ Iterable<
PlutoRow> -
Regardless of filtering or pagination applied,
no setterinherited
-
iterateAllRowAndGroup
→ Iterable<
PlutoRow> -
Regardless of filtering or pagination applied,
no setterinherited
-
iterateAllRowGroup
→ Iterable<
PlutoRow> -
Regardless of filtering or pagination applied,
no setterinherited
-
iterateFilteredMainRowGroup
→ Iterable<
PlutoRow> -
Regardless of pagination applied,
no setterinherited
-
iterateMainRowGroup
→ Iterable<
PlutoRow> -
With filtering or pagination applied,
no setterinherited
-
iterateRow
→ Iterable<
PlutoRow> -
With filtering or pagination applied,
no setterinherited
-
iterateRowAndGroup
→ Iterable<
PlutoRow> -
With filtering or pagination applied,
no setterinherited
-
iterateRowGroup
→ Iterable<
PlutoRow> -
With filtering or pagination applied,
no setterinherited
- keepFocus → bool
-
no setterinherited
- keyManager → PlutoGridKeyManager?
-
no setterinherited
- keyPressed → PlutoGridKeyPressed
-
Currently pressed key
no setterinherited
-
leftFrozenColumnIndexes
→ List<
int> -
Left frozen column Index List.
no setterinherited
-
leftFrozenColumns
→ List<
PlutoColumn> -
Left frozen columns.
no setterinherited
- leftFrozenColumnsWidth → double
-
Width of the left frozen column.
no setterinherited
- leftFrozenRightOffset → double
-
no setterinherited
- loadingLevel → PlutoGridLoadingLevel
-
no setterinherited
- localeText → PlutoGridLocaleText
-
no setterinherited
- maxHeight → double?
-
Screen height
no setterinherited
- maxWidth → double?
-
Screen width
no setterinherited
- mode → PlutoGridMode
-
no setterinherited
- notifierFilterResolver → PlutoChangeNotifierFilterResolver
-
finalinherited
- onChanged → PlutoOnChangedEventCallback?
-
finalinherited
- onColumnsMoved → PlutoOnColumnsMovedEventCallback?
-
finalinherited
- onRowChecked → PlutoOnRowCheckedEventCallback?
-
finalinherited
- onRowDoubleTap → PlutoOnRowDoubleTapEventCallback?
-
finalinherited
- onRowSecondaryTap → PlutoOnRowSecondaryTapEventCallback?
-
finalinherited
- onRowsMoved → PlutoOnRowsMovedEventCallback?
-
finalinherited
- onSelected → PlutoOnSelectedEventCallback?
-
finalinherited
- onSorted → PlutoOnSortedEventCallback?
-
finalinherited
- page → int
-
no setterinherited
- pageRangeFrom → int
-
no setterinherited
- pageRangeTo → int
-
no setterinherited
- pageSize → int
-
no setterinherited
-
refColumnGroups
→ FilteredList<
PlutoColumnGroup> -
finalinherited
-
refColumns
→ FilteredList<
PlutoColumn> -
finalinherited
-
refRows
→ FilteredList<
PlutoRow> -
refRows is a List
finalinherited
- resizingChangeNotifier → ChangeNotifier
-
no setterinherited
- rightBlankOffset → double
-
no setterinherited
-
rightFrozenColumnIndexes
→ List<
int> -
Right frozen column Index List.
no setterinherited
-
rightFrozenColumns
→ List<
PlutoColumn> -
Right frozen columns.
no setterinherited
- rightFrozenColumnsWidth → double
-
Width of the right frozen column.
no setterinherited
- rightFrozenLeftOffset → double
-
no setterinherited
- rowColorCallback → PlutoRowColorCallback?
-
finalinherited
- rowContainerHeight → double
-
no setterinherited
- rowGroupDelegate → PlutoRowGroupDelegate?
-
Setting delegate for grouping rows.
no setterinherited
- rowHeight → double
-
no setterinherited
-
rows
→ List<
PlutoRow> -
no setterinherited
- rowsTopOffset → double
-
no setterinherited
- rowTotalHeight → double
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scroll → PlutoGridScrollController
-
Controller to control the scrolling of the grid.
finalinherited
- scrollOffsetByFrozenColumn → double
-
no setterinherited
- selectingMode → PlutoGridSelectingMode
-
selectingMode
no setterinherited
- showColumnFilter → bool
-
no setterinherited
-
no setterinherited
- showColumnGroups → bool
-
no setterinherited
- showColumnTitle → bool
-
no setterinherited
-
no setterinherited
- showFrozenColumn → bool
-
Whether to apply a frozen column according to the screen size.
true : If there is a frozen column, the frozen column is exposed.
false : If there is a frozen column but the screen is narrow, it is exposed as a normal column.
no setterinherited
- showHeader → bool
-
no setterinherited
- showLoading → bool
-
no setterinherited
- sortOnlyEvent → bool
-
To delegate sort handling in the PlutoInfinityScrollRows or PlutoLazyPagination widget
Whether to override the default sort processing.
If this value is true,
the default sorting processing of PlutoGrid is ignored and only events are issued.
PlutoGridChangeColumnSortEvent
no setterinherited
-
streamNotifier
→ PublishSubject<
PlutoNotifierEvent> -
no setterinherited
- style → PlutoGridStyleConfig
-
no setterinherited
- textDirection → TextDirection
-
no setterinherited
- textEditingController → TextEditingController?
-
no setterinherited
- totalPage → int
-
no setterinherited
- tristateCheckedRow → bool?
-
Property for
tristate
value in Checkbox widget.no setterinherited -
unCheckedRows
→ List<
PlutoRow> -
no setterinherited
Methods
-
activateColumnsAutoSize(
) → void -
inherited
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
addNotifier(
int hash) → void -
inherited
-
appendNewRows(
{int count = 1}) → void -
inherited
-
appendRows(
List< PlutoRow> rows) → void -
inherited
-
autoFitColumn(
BuildContext context, PlutoColumn column) → void -
inherited
-
canChangeCellValue(
{required PlutoCell cell, dynamic newValue, dynamic oldValue}) → bool -
Whether the cell is in a mutable state
inherited
-
canHorizontalCellScrollByDirection(
PlutoMoveDirection direction, PlutoColumn columnToMove) → bool -
Whether the cell can be scrolled when moving.
inherited
-
canMoveCell(
PlutoGridCellPosition? cellPosition, PlutoMoveDirection direction) → bool -
Whether it is possible to move in the
direction
fromcellPosition
.inherited -
canNotChangeCellValue(
{required PlutoCell cell, dynamic newValue, dynamic oldValue}) → bool -
inherited
-
canNotMoveCell(
PlutoGridCellPosition? cellPosition, PlutoMoveDirection direction) → bool -
inherited
-
castValueByColumnType(
dynamic value, PlutoColumn column) → dynamic -
Cast the value according to the column type.
inherited
-
cellPositionByCellKey(
Key? cellKey) → PlutoGridCellPosition? -
Index position of cell in a column
inherited
-
cellPositionToMove(
PlutoGridCellPosition? cellPosition, PlutoMoveDirection direction) → PlutoGridCellPosition -
The index position of the cell to move in that direction in the current cell.
inherited
-
changeCellValue(
PlutoCell cell, dynamic value, {bool callOnChangedEvent = true, bool force = false, bool notify = true}) → void -
Change cell value
callOnChangedEvent
triggers a PlutoOnChangedEventCallback callback.inherited -
clearCurrentCell(
{bool notify = true}) → void -
set currentCell to null
inherited
-
clearCurrentSelecting(
{bool notify = true}) → void -
Resets currently selected rows and cells.
inherited
-
columnGroupDepth(
List< PlutoColumnGroup> columnGroupList) → int -
inherited
-
columnIdxByCellKeyAndRowIdx(
Key cellKey, int rowIdx) → int? -
inherited
-
columnIndex(
PlutoColumn column) → int? -
Index of
column
in columnsinherited -
deactivateColumnsAutoSize(
) → void -
inherited
-
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
enoughFrozenColumnsWidth(
double width) → bool -
inherited
-
filteredCellValue(
{required PlutoColumn column, dynamic newValue, dynamic oldValue}) → dynamic -
Filter on cell value change
inherited
-
filterRowsByField(
String columnField) → List< PlutoRow> -
inherited
-
getColumnsAutoSizeHelper(
{required Iterable< PlutoColumn> columns, required double maxWidth}) → PlutoAutoSize -
inherited
-
getColumnsResizeHelper(
{required List< PlutoColumn> columns, required PlutoColumn column, required double offset}) → PlutoResize -
inherited
-
getNewRow(
) → PlutoRow -
inherited
-
getNewRows(
{int count = 1}) → List< PlutoRow> -
inherited
-
getRowByIdx(
int? rowIdx) → PlutoRow? -
inherited
-
getRowIdxByOffset(
double offset) → int? -
inherited
-
handleAfterSelectingRow(
PlutoCell cell, dynamic value) → void -
The action that is selected in the Select dialog
and processed after the dialog is closed.
inherited
-
handleOnSelected(
) → void -
Event occurred after selecting Row in Select mode.
inherited
-
hideColumn(
PlutoColumn column, bool hide, {bool notify = true}) → void -
Hide or show the
column
withhide
value.inherited -
hideColumns(
List< PlutoColumn> columns, bool hide, {bool notify = true}) → void -
Hide or show the
columns
withhide
value.inherited -
insertColumns(
int columnIdx, List< PlutoColumn> columns) → void -
Insert
columns
atcolumnIdx
position.inherited -
insertRowGroup(
int index, List< PlutoRow> rows) → void -
inherited
-
insertRows(
int rowIdx, List< PlutoRow> rows, {bool notify = true}) → void -
inherited
-
isCurrentCell(
PlutoCell? cell) → bool -
Whether the cell is the currently selected cell.
inherited
-
isEditableCell(
PlutoCell cell) → bool -
inherited
-
isExpandedGroupedRow(
PlutoRow row) → bool -
inherited
-
isFilteredColumn(
PlutoColumn column) → bool -
Check if the column is in a state with filtering applied.
inherited
-
isInvalidCellPosition(
PlutoGridCellPosition? cellPosition) → bool -
inherited
-
isMainRow(
PlutoRow row) → bool -
Returns whether it is the top row or not.
inherited
-
isNotMainGroupedRow(
PlutoRow row) → bool -
inherited
-
isRowBeingDragged(
Key? rowKey) → bool -
inherited
-
isRowIdxBottomDragTarget(
int? rowIdx) → bool -
inherited
-
isRowIdxDragTarget(
int? rowIdx) → bool -
inherited
-
isRowIdxTopDragTarget(
int? rowIdx) → bool -
inherited
-
isSelectedCell(
PlutoCell cell, PlutoColumn column, int rowIdx) → bool -
Whether the cell is the currently multi selected cell.
inherited
-
isSelectedRow(
Key? rowKey) → bool -
inherited
-
isSelectingInteraction(
) → bool -
inherited
-
limitHideColumn(
PlutoColumn column, bool hide, {double accumulateWidth = 0}) → bool -
When changing a column from hidden state to unhidden state,
Check the constraint on the frozen column.
If the hidden column is a frozen column
The width of the currently frozen column is limited.
inherited
-
limitMoveColumn(
{required PlutoColumn column, required PlutoColumn targetColumn}) → bool -
When moving from a non-frozen column to a frozen column area,
check the frozen column width constraint.
inherited
-
limitResizeColumn(
PlutoColumn column, double offset) → bool -
When expanding the width of the freeze column,
check the width constraint of the freeze column.
inherited
-
limitToggleFrozenColumn(
PlutoColumn column, PlutoColumnFrozen frozen) → bool -
When changing the value of PlutoColumn.frozen,
check the frozen column width constraint.
inherited
-
moveColumn(
{required PlutoColumn column, required PlutoColumn targetColumn}) → void -
Move
column
position totargetColumn
.inherited -
moveCurrentCell(
PlutoMoveDirection direction, {bool force = false, bool notify = true}) → void -
Change the current cell to the cell in the
direction
and move the scrollforce
true : Allow left and right movement with tab key in editing state.inherited -
moveCurrentCellByRowIdx(
int rowIdx, PlutoMoveDirection direction, {bool notify = true}) → void -
inherited
-
moveCurrentCellToEdgeOfColumns(
PlutoMoveDirection direction, {bool force = false, bool notify = true}) → void -
inherited
-
moveCurrentCellToEdgeOfRows(
PlutoMoveDirection direction, {bool force = false, bool notify = true}) → void -
inherited
-
moveRowsByIndex(
List< PlutoRow> rows, int? indexToMove, {bool notify = true}) → void -
inherited
-
moveRowsByOffset(
List< PlutoRow> rows, double offset, {bool notify = true}) → void -
inherited
-
moveScrollByColumn(
PlutoMoveDirection direction, int? columnIdx) → void -
Scroll to
columnIdx
position.inherited -
moveScrollByRow(
PlutoMoveDirection direction, int? rowIdx) → void -
Scroll to
rowIdx
position.inherited -
moveSelectingCell(
PlutoMoveDirection direction) → void -
inherited
-
moveSelectingCellByRowIdx(
int rowIdx, PlutoMoveDirection direction, {bool notify = true}) → void -
inherited
-
moveSelectingCellToEdgeOfColumns(
PlutoMoveDirection direction, {bool force = false, bool notify = true}) → void -
inherited
-
moveSelectingCellToEdgeOfRows(
PlutoMoveDirection direction, {bool force = false, bool notify = true}) → void -
inherited
-
needMovingScroll(
Offset? offset, PlutoMoveDirection move) → bool -
inherited
-
nextFocusOfColumnFilter(
PlutoColumn column, {bool reversed = false}) → void -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyChangedShowFrozenColumn(
) → void -
inherited
-
notifyListeners(
[bool notify = true, int? notifier]) → void -
Call all the registered listeners.
inherited
-
notifyListenersOnPostFrame(
[bool notify = true, int? notifier]) → void -
inherited
-
notifyResizingListeners(
) → void -
inherited
-
pasteCellValue(
List< List< textList) → voidString> > -
Paste based on current cell
inherited
-
prependNewRows(
{int count = 1}) → void -
inherited
-
prependRows(
List< PlutoRow> rows) → void -
inherited
-
removeAllRows(
{bool notify = true}) → void -
inherited
-
removeColumns(
List< PlutoColumn> columns) → void -
inherited
-
removeColumnsInColumnGroup(
List< PlutoColumn> columns, {bool notify = true}) → void -
inherited
-
removeColumnsInFilterRows(
List< PlutoColumn> columns, {bool notify = true}) → void -
inherited
-
removeColumnsInRowGroupByColumn(
List< PlutoColumn> columns, {bool notify = true}) → void -
inherited
-
removeCurrentRow(
) → void -
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
removeRowAndGroupByKey(
Iterable< Key> keys) → void -
inherited
-
removeRows(
List< PlutoRow> rows, {bool notify = true}) → void -
inherited
-
resetCurrentState(
{bool notify = true}) → void -
inherited
-
resetPage(
{bool resetCurrentState = true, bool notify = true}) → void -
inherited
-
resetScrollToZero(
) → void -
Called to fix an error
that the screen cannot be touched due to an incorrect scroll range
when resizing the screen.
inherited
-
resetShowFrozenColumn(
) → void -
inherited
-
resizeColumn(
PlutoColumn column, double offset) → void -
Resize column size
inherited
-
resolveNotifierFilter<
T> () → PlutoChangeNotifierFilter< T> -
scrollByDirection(
PlutoMoveDirection direction, double offset) → void -
direction
Scroll directionoffset
Scroll positioninherited -
separateLinkedGroup(
{required List< PlutoColumnGroup> columnGroupList, required List<PlutoColumn> columns}) → List<PlutoColumnGroupPair> -
inherited
-
setAllCurrentSelecting(
) → void -
inherited
-
setAutoEditing(
bool flag, {bool notify = true}) → void -
inherited
-
setColumnSizeConfig(
PlutoGridColumnSizeConfig config) → void -
inherited
-
setConfiguration(
PlutoGridConfiguration configuration, {bool updateLocale = true, bool applyColumnFilter = true}) → void -
inherited
-
setCurrentCell(
PlutoCell? cell, int? rowIdx, {bool notify = true}) → void -
Change the selected cell.
inherited
-
setCurrentCellPosition(
PlutoGridCellPosition? cellPosition, {bool notify = true}) → void -
inherited
-
setCurrentSelectingPosition(
{PlutoGridCellPosition? cellPosition, bool notify = true}) → void -
Sets the position of a multi-selected cell.
inherited
-
setCurrentSelectingPositionByCellKey(
Key? cellKey, {bool notify = true}) → void -
inherited
-
setCurrentSelectingPositionWithOffset(
Offset? offset) → void -
Sets the position of a multi-selected cell.
inherited
-
setCurrentSelectingRowsByRange(
int? from, int? to, {bool notify = true}) → void -
Sets the currentSelectingRows by range.
from
rowIdx of rows.to
rowIdx of rows.inherited -
setDragRows(
List< PlutoRow> rows, {bool notify = true}) → void -
inherited
-
setDragTargetRowIdx(
int? rowIdx, {bool notify = true}) → void -
inherited
-
setEditing(
bool flag, {bool notify = true}) → void -
Change the editing status of the current cell.
inherited
-
setEventManager(
PlutoGridEventManager? eventManager) → void -
inherited
-
setFilter(
FilteredListFilter< PlutoRow> ? filter, {bool notify = true}) → void -
inherited
-
setFilterOnlyEvent(
bool flag) → void -
Set whether to ignore the basic filtering process and issue only events.
PlutoGridSetColumnFilterEvent
inherited
-
setFilterRows(
List< PlutoRow> rows) → void -
inherited
-
setFilterWithFilterRows(
List< PlutoRow> rows, {bool notify = true}) → void -
inherited
-
setGridGlobalOffset(
Offset offset) → void -
inherited
-
setGridMode(
PlutoGridMode mode) → void -
inherited
-
setGroupToColumn(
) → void -
inherited
-
setIsDraggingRow(
bool flag, {bool notify = true}) → void -
inherited
-
setKeepFocus(
bool flag, {bool notify = true}) → void -
inherited
-
setKeyManager(
PlutoGridKeyManager? keyManager) → void -
inherited
-
setLayout(
BoxConstraints size) → void -
Update screen size information when LayoutBuilder builds.
inherited
-
setPage(
int page, {bool resetCurrentState = true, bool notify = true}) → void -
inherited
-
setPageSize(
int pageSize, {bool notify = true}) → void -
inherited
-
setRowChecked(
PlutoRow row, bool flag, {bool notify = true}) → void -
inherited
-
setRowGroup(
PlutoRowGroupDelegate? delegate, {bool notify = true}) → void -
Set up a delegate for grouping rows.
inherited
-
setRowGroupFilter(
FilteredListFilter< PlutoRow> ? filter) → void -
inherited
-
setSelecting(
bool flag, {bool notify = true}) → void -
Change Multi-Select Status.
inherited
-
setSelectingMode(
PlutoGridSelectingMode selectingMode, {bool notify = true}) → void -
Set the mode to select cells or rows.
inherited
-
setShowColumnFilter(
bool flag, {bool notify = true}) → void -
inherited
-
inherited
-
setShowColumnGroups(
bool flag, {bool notify = true}) → void -
inherited
-
setShowColumnTitle(
bool flag, {bool notify = true}) → void -
inherited
-
setShowLoading(
bool flag, {PlutoGridLoadingLevel level = PlutoGridLoadingLevel.grid, bool notify = true}) → void -
inherited
-
setSortOnlyEvent(
bool flag) → void -
Set whether to ignore the default sort processing and issue only events.
PlutoGridChangeColumnSortEvent
inherited
-
setTextDirection(
TextDirection textDirection) → void -
inherited
-
setTextEditingController(
TextEditingController? textEditingController) → void -
inherited
-
shouldShowFrozenColumns(
double width) → bool -
inherited
-
showFilterPopup(
BuildContext context, {PlutoColumn? calledColumn, void onClosed()?}) → void -
inherited
-
showSetColumnsPopup(
BuildContext context) → void -
inherited
-
sortAscending(
PlutoColumn column, {bool notify = true}) → void -
inherited
-
sortBySortIdx(
PlutoColumn column, {bool notify = true}) → void -
inherited
-
sortDescending(
PlutoColumn column, {bool notify = true}) → void -
inherited
-
sortRowGroup(
{required PlutoColumn column, required int compare(PlutoRow, PlutoRow)}) → void -
inherited
-
toDirectionalOffset(
Offset offset) → Offset -
inherited
-
toggleAllRowChecked(
bool? flag, {bool notify = true}) → void -
inherited
-
toggleEditing(
{bool notify = true}) → void -
Toggle the editing status of the current cell.
inherited
-
toggleExpandedRowGroup(
{required PlutoRow rowGroup, bool notify = true}) → void -
Collapse or expand the group row.
inherited
-
toggleFrozenColumn(
PlutoColumn column, PlutoColumnFrozen frozen) → void -
Toggle whether the column is frozen or not.
inherited
-
toggleSelectingRow(
int? rowIdx, {bool notify = true}) → void -
Select or unselect a row.
inherited
-
toggleSortColumn(
PlutoColumn column) → void -
Toggle column sorting.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateCorrectScrollOffset(
) → void -
inherited
-
updateCurrentCellPosition(
{bool notify = true}) → void -
inherited
-
updateRowGroupByHideColumn(
List< PlutoColumn> columns) → void -
inherited
-
updateScrollViewport(
) → void -
inherited
-
updateVisibilityLayout(
{bool notify = false}) → void -
Set PlutoColumn.startPosition to PlutoColumn.width.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
initializeRows(
List< PlutoColumn> refColumns, List<PlutoRow> refRows, {bool forceApplySortIdx = true, bool increase = true, int start = 0}) → List<PlutoRow> -
It handles the necessary settings when
rows
are first set or added to the PlutoGrid. -
initializeRowsAsync(
List< PlutoColumn> refColumns, List<PlutoRow> refRows, {bool forceApplySortIdx = true, bool increase = true, int start = 0, int chunkSize = 100, Duration duration = const Duration(milliseconds: 1)}) → Future<List< PlutoRow> > - An asynchronous version of PlutoGridStateManager.initializeRows.