W3cubDocs

/Dart 2

convert method

String convert (List<int> input)

Converts input and returns the result of the conversion.

Implementation

String convert(List<int> input) {
  if (input.isEmpty) return "";
  var encoder = new _Base64Encoder(_urlSafe);
  Uint8List buffer = encoder.encode(input, 0, input.length, true);
  return new String.fromCharCodes(buffer);
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-convert/Base64Encoder/convert.html