encode method

  1. @override
String encode(
  1. List<int> data
)
override

Implementation

@override
String encode(List<int> data) {
  final result =
      _convertBits(data, 8, 5, true).fold<String>('', (prev, item) {
    prev += _alphabet[item];
    return prev;
  });
  return result;
}