VariableMirror class Null safety

A VariableMirror reflects a Dart language variable declaration.

Implemented types
Implementers

Constructors

VariableMirror()

Properties

dynamicReflectedType Type
If hasDynamicReflectedType is true, returns the corresponding Type as specified for dynamicReflectedType in ClassMirror. Otherwise, an UnsupportedError is thrown. [...]
read-only
hasDynamicReflectedType bool
Returns the value specified with hasDynamicReflectedType in ClassMirror, but for the type given by the annotation of the variable modeled by this mirror. [...]
read-only
hashCode int
Override requested by linter.
read-only, override
hasReflectedType bool
Returns the value specified with hasReflectedType in TypeMirror, but for the type given by the annotation of the variable modeled by this mirror. [...]
read-only
isConst bool
Returns true if the reflectee is declared const. Otherwise returns false. [...]
read-only
isFinal bool
Returns true if the reflectee is a final variable. Otherwise returns false. [...]
read-only
isPrivate bool
Whether this declaration is library private. [...]
read-only, inherited
isStatic bool
Returns true if the reflectee is a static variable. Otherwise returns false. [...]
read-only
isTopLevel bool
Whether this declaration is top-level. [...]
read-only, inherited
location SourceLocation
The source location of this Dart language entity, or null if the entity is synthetic. [...]
read-only, inherited
metadata List<Object>
A list of the metadata associated with this declaration. [...]
read-only, inherited
owner DeclarationMirror
A mirror on the owner of this Dart language entity. [...]
read-only, override
qualifiedName String
The fully-qualified name for this Dart language entity. [...]
read-only, inherited
reflectedType Type
If hasReflectedType is true, returns the corresponding Type. Otherwise, an UnsupportedError is thrown. [...]
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
simpleName String
The simple name for this Dart language entity. [...]
read-only, inherited
type TypeMirror
Returns a mirror on the type of the reflectee. [...]
read-only

Methods

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
Whether this mirror is equal to other. [...]
override