generateFlagshipId static method

dynamic generateFlagshipId()

Implementation

static generateFlagshipId() {
  int min = 10000;
  int max = 99999;
  // Set format
  final format = new DateFormat('yyyyMMddhhmss');
  // Return the uuid
  return format.format(DateTime.now()) + (min + Random().nextInt(max - min)).toString();
}