UuidUtils class

Name: UUID工具类 基于 uuid Created by Fitem on 2023/6/4

Constructors

UuidUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getUuid() String
获取uuid 基于uuid v1 + uuid v4 内容通过 getUuidV5 生成的uuid 例如:c4a760a8-dbcf-5254-a0d9-6a4474bd1b62
getUuidV1() String
获取uuid v1 基于当前时间生成的uuid 例如:6c84fb90-12c4-11e1-840d-7b25c5ee775a
getUuidV4() String
获取uuid v4 基于mathRNG随机数生成的uuid 例如:110ec58a-a0f2-4ac4-8393-c866d813b8d1
getUuidV5(String content) String
获取uuid v5 基于 namespace + 内容 生成的uuid 例如:c4a760a8-dbcf-5254-a0d9-6a4474bd1b62