encode abstract method

String encode(
  1. String input
)

Encodes the input string using the codec's specific algorithm.

input The plain text string to be encoded. Returns the encoded string.

Throws ArgumentError if the input is invalid for this codec. Throws FormatException if encoding fails due to format issues.

Implementation

String encode(String input);