Constant<T> class Null safety

Holds an immutable symbol, the value of which is set once and only once.

Inheritance
Annotations

Constructors

Constant(String name, T value)

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, inherited
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, inherited
name String
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
symbolTable SymbolTable<T>?
final, inherited
value ↔ T?
read / write, inherited
visibility Visibility
read / write, inherited

Methods

lock() → void
Locks this symbol, and prevents its value from being overwritten.
inherited
markAsPrivate() → void
Marks this symbol as private.
inherited
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