dataSize method

int dataSize()

Implementation

int dataSize() {
  if (_dataSize == null) {
    _dataSize = 0;
    data.forEach((String key, var value) {
      _dataSize = _dataSize! + BsonObject.elementSize(key, value);
    });
  }
  return _dataSize!;
}