Rename variable

This commit is contained in:
laurenspriem
2025-05-18 11:58:42 +05:30
parent 6ff6594a81
commit ff705280c7

View File

@@ -2,16 +2,16 @@ import 'package:nanoid/nanoid.dart';
const enteWhiteListedAlphabet =
'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
const clusterIDLength = 22;
const randomIDLength = 22;
String newClusterID() {
return "cluster_${customAlphabet(enteWhiteListedAlphabet, clusterIDLength)}";
return "cluster_${customAlphabet(enteWhiteListedAlphabet, randomIDLength)}";
}
String newID(String prefix) {
return "${prefix}_${customAlphabet(enteWhiteListedAlphabet, clusterIDLength)}";
return "${prefix}_${customAlphabet(enteWhiteListedAlphabet, randomIDLength)}";
}
String newIsolateTaskID(String task) {
return "${task}_${customAlphabet(enteWhiteListedAlphabet, clusterIDLength)}";
return "${task}_${customAlphabet(enteWhiteListedAlphabet, randomIDLength)}";
}