current property
Catalog
get
current
The catalog a decoder uses when it is given none: the one an
enclosing decoder was given (it enters it for the decode, so a reaction
inside a prop decodes with it too) or run set; else Catalog.core.
The core knows no feature library, so code that reads feature types
passes the catalog it was built with (standardCatalog from
package:codelessly_api/codelessly_api.dart, or the SDK's).
This is a scope, not a registry: it holds only for the duration of the decode (or run) that set it.
Implementation
static Catalog get current => (Zone.current[_zoneKey] as Catalog?) ?? core;