TypedReader constructor

TypedReader(
  1. ClassElement _hostElement
)

Creates a reader for parsing Typed values associated with a host class.

It's required that any type parameter referenced via Symbol be declared by the host class. For example, parsing Typed<List>.of([#X]) requires that the host class has a type parameter X.

Implementation

TypedReader(this._hostElement);