put method

void put(
  1. T entity
)

Stores entity under its own id, replacing whatever row was there.

Implementation

void put(T entity) => _rows[idOf(entity)] = encode(entity);