TableUpdate.onTable constructor

TableUpdate.onTable(
  1. GeneratedTable<Object, GeneratedTable<Object, dynamic>> table, {
  2. UpdateKind? kind,
})

Creates a TableUpdate instance based on a GeneratedTable instead of the raw name.

Implementation

factory TableUpdate.onTable(GeneratedTable table, {UpdateKind? kind}) {
  return TableUpdate(table.entityName, kind: kind);
}