nextID method

Object nextID(
  1. String table
)

Implementation

Object nextID(String table) {
  return _tablesIdCount.update(
    table,
    (n) => n + 1,
    ifAbsent: () => _getTableHighestID(table) + 1,
  );
}