W3cubDocs

/Dart 2

convert method

String convert (List<int> input)
override

Converts input and returns the result of the conversion.

Implementation

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

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