Fix nano id alphabets

This commit is contained in:
Neeraj Gupta
2024-08-14 12:25:36 +05:30
parent 9e22cfa972
commit 9d9b4f00ed

View File

@@ -1,13 +1,13 @@
import "package:flutter/foundation.dart";
import 'package:nanoid/nanoid.dart';
const alphaphet =
const enteWhiteListedAlphabet =
'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
const clusterIDLength = 22;
class ClusterID {
static String generate() {
return "cluster_${customAlphabet(urlAlphabet, clusterIDLength)}";
return "cluster_${customAlphabet(enteWhiteListedAlphabet, clusterIDLength)}";
}
// Validation method