count method

int count()

Returns the number of rows in the cache

Example:

print('Total notes: ${noteTable.count()}');

Implementation

int count() {
  return hasPrimaryKey ? _rowsByPrimaryKey.length : _rows.length;
}