Fladder/lib/util/jelly_id.dart
PartyDonut 7b3e733b76
[Setup] Added build.yaml and check.yaml (#1)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
2024-09-21 11:59:28 +02:00

8 lines
256 B
Dart

// ignore: depend_on_referenced_packages
import 'package:uuid/uuid.dart';
String get jellyId {
var uuid = const Uuid();
var guid = uuid.v4().replaceAll('-', ''); // Remove hyphens
return guid.substring(0, 32); // Take only the first 32 characters
}