newId method

String newId([
  1. String prefix = "n"
])

Implementation

String newId([String prefix = "n"]) => "$prefix${DateTime.now().microsecondsSinceEpoch}_${_nextId++}";