Variable<T> class Null safety

Holds a symbol, the value of which may change or be marked immutable.

Implementers

Properties

hashCode int
The hash code for this object.
read-only, inherited
isImmutable bool
If true, then the value of this variable cannot be overwritten.
read-only
isPrivate bool
This flag has no meaning within the context of this library, but if you are implementing some sort of interpreter, you may consider acting based on whether a variable is private.
read-only
name String
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
symbolTable SymbolTable<T>?
final
value ↔ T?
read / write
visibility Visibility
read / write

Methods

lock() → void
Locks this symbol, and prevents its value from being overwritten.
markAsPrivate() → void
Marks this symbol as private.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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