convert method

  1. @override
String convert(
  1. String input
)
override

Converts input and returns the result of the conversion.

Implementation

@override
String convert(String input) {
  return utf8.decode(input
      .trim()
      .replaceAll(_terminator, '')
      .split(_sectionSeparator)
      .map((chars) => chars.runes
          .map((x) => _charValues[String.fromCharCode(x)] ?? 0)
          .reduce((a, b) => a + b))
      .toList());
}