getUuidV5 static method
获取uuid v5
基于 namespace + 内容生成的uuid 例如:c4a760a8-dbcf-5254-a0d9-6a4474bd1b62
content 用于生成UUID的内容,不能为空
返回UUID字符串
Implementation
static String getUuidV5(String content) {
if (content.isEmpty) {
StormyLog.w('UuidUtils.getUuidV5: 内容不能为空');
throw ArgumentError('内容不能为空');
}
var uuid = const Uuid();
var v5 = uuid.v5(Namespace.url.name, content);
return v5;
}