uuid top-level property

String uuid

Generate and retrieve the UUID for Version 4.

Returned as a string with 32 hyphenated characters removed.

Version4のUUIDを生成し取得します。

32文字のハイフンが取り除かれた文字列として返されます。

Implementation

String get uuid {
  const uuid = Uuid();
  return uuid.v4().replaceAll("-", "");
}