setCellDropdown method

Future<void> setCellDropdown(
  1. int row,
  2. int col,
  3. ListEditorParams dropdown
)

Set the typed dropdown for an individual cell.

Implementation

Future<void> setCellDropdown(
    int row, int col, ListEditorParams dropdown) async {
  await VolvoxGridService.UpdateCells(UpdateCellsRequest()
    ..gridId = _gridId
    ..cells.add(CellUpdate()
      ..row = row
      ..col = col
      ..editor = _listEditorSpec(dropdown)));
  notifyListeners();
}