createNewId static method

String createNewId(
  1. String suffix
)

Creates a temporary object id for an object that has not yet been saved to firestore.

Implementation

static String createNewId(String suffix) {
  gNewId++;
  return "${newId}_${suffix.toString()}_${gNewId.toString()}";
}