convert method

List<int> convert(String input, [ int start = 0, int end ])

Converts input and returns the result of the conversion.

Source

List<int> convert(String input, [int start = 0, int end]) {
  end = RangeError.checkValidRange(start, end, input.length);
  if (start == end) return new Uint8List(0);
  var decoder = new _Base64Decoder();
  Uint8List buffer = decoder.decode(input, start, end);
  decoder.close(input, end);
  return buffer;
}

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