RenderedFile class final
A file of the app that stage 8 rendered.
Constructors
-
RenderedFile({required String path, required List<
int> bytes, required ContributionOrigin owner, bool isText = true, List<AddedImport> addedImports = const []}) -
Creates the file at
pathwithbytes, generated byowner.const
Properties
-
addedImports
→ List<
AddedImport> -
The imports the pipeline added to the file for the fragments of the
sockets whose tags it holds and of the fragment variables it reads,
one for each fragment that needs it, resolved in the app: an import
the file already had is not among them.
final
-
bytes
→ List<
int> -
The content.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isText → bool
-
Whether the file is text, which mason renders, or binary, which it
copies.
final
- owner → ContributionOrigin
-
Who generated the file: the owner of its brick.
final
- path → String
-
The path relative to the root of the app, with forward slashes.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
The content as text.
no setter
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