boundaryString method

String boundaryString()

Implementation

static String boundaryString() {
  String prefix = "dart-http-boundary-";
  Random random = Random();
  List<int> list = List<int>.generate(
    _boundaryLength - prefix.length,
    (int index) =>
        _boundaryCharacters[random.nextInt(_boundaryCharacters.length)],
    growable: false,
  );
  return "$prefix${String.fromCharCodes(list)}";
}