insertRow method

void insertRow(
  1. T row
)

Implementation

void insertRow(T row) {
  final primaryKey = decoder.getPrimaryKey(row);
  if (primaryKey != null) {
    _rowsByPrimaryKey[primaryKey] = row;
  } else {
    _rows.add(row);
  }
  _refreshRowsNotifier();
  if (primaryKey != null && _rowNotifiers.containsKey(primaryKey)) {
    _notifyRowListeners([primaryKey]);
  }
}