generateUID method

String generateUID(
  1. Type classType
)

Implementation

String generateUID(Type classType) {
  return "${classType.toString().toLowerCase()}_${DateTime.now().millisecondsSinceEpoch}_" + getRandomString(20);
}