convert method Null safety

String convert (
  1. 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);
}