EmbedLiteral class

Annotation for embedding a structured data as a dart object.

Currently, JSON, YAML and TOML files are supported.

Inheritance

Constructors

EmbedLiteral(String path, {List<Preprocessor> preprocessors = const [Preprocessor.recase, Preprocessor.escapeReservedKeywords]})
Creates an annotation for embedding a structured data as a dart object.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
path String
The path to the content file to be embedded.
finalinherited
preprocessors List<Preprocessor>
Preprocessors applied to the parsed content.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited