Adds a value to the box using an auto-incremented key (if supported).
Returns the generated key or index.
Future<int> add(T value);