v1.1.0
sane_uuid
Eine vernünftige UUID-Implementierung mit Unterstützung für die Erzeugung und Verwaltung von UUIDs der Versionen v1, v4 und v5 gemäß RFC4122.
4Likes 23.10030-Tage-Downloads160Pub-Punkte
AndroidiOSWebmacOSWindowsLinux
UUID-Erzeugung und -Analyse mit einer sinnvollen Schnittstelle
Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.
A properly designed, efficient UUID library for Dart.
Uuid type with equality, comparison and accessors for properties defined by RFC 4122
A simple usage example:
import 'package:sane_uuid/uuid.dart';
// randomly generated using secure random number generator
final Uuid randomUuid = Uuid.v4();
// Prints properly formatted UUID, e.g.: a8796ef4-8767-4cd0-b432-c5e93ba120df
print(randomUuid);
// parse any common UUID string
final parsedUuid = Uuid.fromString(
'a8796ef4-8767-4cd0-b432-c5e93ba120df',
);
// hyphens and capitalization don't matter
final parsedUuidDifferentFormatting = Uuid.fromString(
'A8796EF487674CD0B432C5E93BA120DF',
);
// UUID objects with the same data are actually equal
assert(parsedUuid == parsedUuidDifferentFormatting);
For more examples, see the examples page.
Please file feature requests and bugs at the issue tracker.
This project is released under the MIT License. That includes every file in this repository, unless explicitly stated otherwise at the top of a file. A copy of the license text can be found in the LICENSE file.