Skip to content
pubscout

uuid_type

2.2.1, released 9 days ago by an unverified publisher

Provides UUID parsing, generation (v1, v4, v5) and comparison for Dart.

WASM-ready
$ flutter pub add uuid_type
Source repository

What it does

The package implements RFC4122 UUID handling, allowing creation from strings, byte arrays, and generation of time‑based, random, and name‑based UUIDs. It also offers comparable UUID objects for sorting.

AI-written summary of version 2.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to generate or parse UUIDs in a Dart or Flutter app
  • You require deterministic UUIDs (v5) or time‑based UUIDs (v1)
  • You want a lightweight, pure‑Dart solution without native code

Skip it when

  • You need UUID versions not supported (v2, v3, v6, v7, v8)
  • You prefer a package with built‑in code‑generation utilities

Strengths

  • Supports multiple UUID versions (v1, v4, v5)
  • Works on all Dart platforms (web, mobile, desktop)
  • No native dependencies, pure Dart

Weaknesses

  • Missing support for newer UUID specs (v6, v7, v8)
  • Limited to generation and parsing; no additional utilities

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
1
import 'package:uuid_type/uuid_type.dart';

void main() {
  var uuid = RandomUuidGenerator().generate();
  print(uuid);
}

Alternatives

Packages that do the same job and could replace uuid_type.

  • uuid

    Provides similar UUID generation and parsing with broader version support (including v3) and is widely used

Works with

Packages commonly used together with uuid_type: ones it builds on, ones built on it, and its own family.