setGridMode method
Implementation
@override
void setGridMode(PlutoGridMode mode) {
if (_state._mode == mode) return;
_state._mode = mode;
PlutoGridSelectingMode selectingMode;
switch (mode) {
case PlutoGridMode.normal:
case PlutoGridMode.readOnly:
case PlutoGridMode.popup:
selectingMode = this.selectingMode;
break;
case PlutoGridMode.select:
case PlutoGridMode.selectWithOneTap:
selectingMode = PlutoGridSelectingMode.none;
break;
case PlutoGridMode.multiSelect:
selectingMode = PlutoGridSelectingMode.row;
break;
}
setSelectingMode(selectingMode);
resetCurrentState();
}