markTablesUpdated method Null safety

void markTablesUpdated(
  1. Iterable<TableInfo<Table, dynamic>> tables
)

Marks the tables as updated.

In response to calling this method, all streams listening on any of the tables will load their data again.

Primarily, this method is meant to be used by drift-internal code. Higher- level drift APIs will call this method to dispatch stream updates. Of course, you can also call it yourself to manually dispatch table updates. To obtain a TableInfo, use the corresponding getter on the database class.

Implementation

void markTablesUpdated(Iterable<TableInfo> tables) {
  notifyUpdates(
    {for (final table in tables) TableUpdate(table.actualTableName)},
  );
}