String randomBase64(int len) { // random base64 var random = Random.secure(); var values = List<int>.generate(len, (i) => random.nextInt(255)); var base64 = base64UrlEncode(values); return base64; }