CompileViewStorage class

CompileView implementation of ViewStorage which stores instances as class member fields on the AppView class.

Storage is used to share instances with child views and to share data between build and change detection methods.

The CompileView reuses simple ClassField(s) to implement storage for runtime.

Implemented types

Constructors

CompileViewStorage()

Properties

fields List<ClassField>
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

allocate(String name, {OutputType? outputType = o.OBJECT_TYPE, required List<StmtModifier> modifiers, Expression? initializer}) ViewStorageItem
override
buildReadExpr(ViewStorageItem item) Expression
override
buildWriteExpr(ViewStorageItem item, Expression value) Expression
override
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