currentSelectingText property
String of multi-selected cells. Preserves the structure of the cells selected by the tabs and the enter key.
Implementation
@override
String get currentSelectingText {
final bool fromSelectingRows =
selectingMode.isRow && currentSelectingRows.isNotEmpty;
final bool fromSelectingPosition =
currentCellPosition != null && currentSelectingPosition != null;
final bool fromCurrentCell = currentCellPosition != null;
if (fromSelectingRows) {
return _selectingTextFromSelectingRows();
} else if (fromSelectingPosition) {
return _selectingTextFromSelectingPosition();
} else if (fromCurrentCell) {
return _selectingTextFromCurrentCell();
}
return '';
}