newId static method

String newId({
  1. String prefix = "auto",
})

Implementation

static String newId({String prefix = "auto"}) =>
    "$prefix${Uuid().v4().replaceAll("-", "").toLowerCase()}";