generateKey<T> static method

String generateKey<T>([
  1. String? type
])

Implementation

static String generateKey<T>([String? type]) {
  if (type != null) {
    type = internalTypeFor(type);
  } else {
    type = getInternalType<T>();
  }
  return uuid.v1().substring(0, 8).typifyWith(type);
}