decode method

String decode(
  1. List<int> ids
)

Decode a list of int ids back to a string. Out-of-range ids become the empty string.

Implementation

String decode(List<int> ids) {
  final sb = StringBuffer();
  for (final id in ids) {
    if (id >= 0 && id < chars.length) sb.write(chars[id]);
  }
  return sb.toString();
}