addDecoder<T> static method Null safety

bool addDecoder<T>(
  1. Decoder<T> decoder
)

Adds or updates a decoder function for type T.

  • Returns true if the decoder function was added.
  • Decoders for the following types can not be added or updated:
    • bool, double, int, Null,num,Symbol,Type,dynamic,
    • List<dynamic>, Map<dynamic, dynamic>, Set<dynamic>.

Implementation

static bool addDecoder<T>(Decoder<T> decoder) => _gr.addDecoder(decoder);