canSubmitCell method

  1. @nonVirtual
  2. @override
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

@nonVirtual
@override
Future<bool> canSubmitCell(DataGridRow dataGridRow, RowColumnIndex rowColumnIndex, GridColumn column) {
  return xCanSubmitCell(dataGridRow, rowColumnIndex, column);
}