moveCurrentCellToEdgeOfRows method
void
moveCurrentCellToEdgeOfRows(
- PlutoMoveDirection direction, {
- bool force = false,
- bool notify = true,
inherited
Implementation
@override
void moveCurrentCellToEdgeOfRows(
PlutoMoveDirection direction, {
bool force = false,
bool notify = true,
}) {
if (!direction.vertical) {
return;
}
if (!force && isEditing == true) {
return;
}
final field = currentColumnField ?? columns.first.field;
final int rowIdx = direction.isUp ? 0 : refRows.length - 1;
final cellToMove = refRows[rowIdx].cells[field];
setCurrentCell(cellToMove, rowIdx, notify: notify);
direction.isUp
? scroll.vertical!.jumpTo(0)
: scroll.vertical!.jumpTo(scroll.maxScrollVertical);
}