EmbeddedResource class final

The content of one file of lib/resources/, written into the generated code at build time.

Embedding is what makes resources: locations work the same in dart run, AOT executables, Flutter and the web, where there is no project folder at run time and no asset declaration is needed. The generator writes these (BeanModule(resources: ...)); applications never create one.

Constructors

EmbeddedResource.base64(String base64)
A binary file whose content is encoded in base64.
const
EmbeddedResource.text(String text)
A text file with the content text.
const

Properties

base64 → String?
The base64 content of a binary file; null for a text file.
final
bytes → Uint8List
The content as bytes (text encoded as UTF-8).
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → String?
The content of a text file; null for a binary file.
final

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