canSubmitCell method

Future<bool> canSubmitCell(
  1. DataGridRow dataGridRow,
  2. RowColumnIndex rowColumnIndex,
  3. GridColumn column
)

Called whenever the cell’s editing is completed i.e. prior to onCellSubmit method.

If you want to restrict the cell from being end its editing, you can return false. Otherwise, return true. onCellSubmit will be called only if the canSubmitCell returns true.

Implementation

Future<bool> canSubmitCell(DataGridRow dataGridRow,
    RowColumnIndex rowColumnIndex, GridColumn column) async {
  return true;
}