encode method

T encode (
  1. S input
)

Encodes input.

The input is encoded as if by encoder.convert.

Implementation

T encode(S input) => encoder.convert(input);