decoder method

dynamic decoder(
  1. String? value, {
  2. Encoding? charset,
})

Decode a single scalar using either the custom Decoder or the default implementation in Utils.decode.

Implementation

dynamic decoder(String? value, {Encoding? charset}) => _decoder is Function
    ? _decoder?.call(value, charset: charset)
    : Utils.decode(value, charset: charset);