generateDbId function Null safety

String generateDbId()

Implementation

String generateDbId() {
  return ObjectId().hexString;
}