MongoDocument.single constructor

MongoDocument.single(
  1. String key,
  2. dynamic value
)

Create a Document instance initialized with the given key/value pair.

Implementation

MongoDocument.single(String key, dynamic value) {
  _map[key] = value;
}