generic_reader library

Classes

BoolDecoder
Decoder<T>
DecoderNotFound
This type of error is thrown if an attempt at reading a DartObject failed because a suitable Decoder is not registered with GenericReader.
DoubleDecoder
EnumDecoder<E extends Enum>
A generic enum decoder
IntDecoder
InvalidTypeArgument
This type of error is thrown if an invalid type argument is provided for a generic type.
IterableDecoder<T>
ListDecoder<E>
MapDecoder<K, V>
NumDecoder
RecordDecoder<R extends Record>
A decoder that can decode a record of shape/type R.
SetDecoder<T>
StringDecoder
SymbolDecoder
TypeDecoder
ValueDecoder<T>
A Decoder that can be registered to read a const object with no substructure like a simple annotation. It returns the value provided as constructor parameter.

Extensions

Reader on DartObject

Constants

doubleDecoder → const DoubleDecoder
intDecoder → const IntDecoder

Typedefs

RecordFactory<R extends Record> = R Function({required Map<String, DartObject> named, required List<DartObject> positional})
A callback which returns a Record of shape/type R given the positional and named record fields as DartObjects.
RecordObj = ({Map<String, DartObject> named, List<DartObject> positional})
Typedef representing the Record shape returned by the method DartObject.toRecordValue.