A VariableMirror reflects a Dart language variable declaration.
- Implements
- Implemented by
Properties
- bool isConst
-
read-onlyReturns
true
if the reflectee is declaredconst
. Otherwise returnsfalse
. - bool isFinal
-
read-onlyReturns
true
if the reflectee is a final variable. Otherwise returnsfalse
. - bool isPrivate
-
read-only, inheritedReturns
true
if this declaration is considered private according to the Dart language specification. Always returnsfalse
if this declaration is a library. Otherwise returnfalse
. - bool isStatic
-
read-onlyReturns
true
if the reflectee is a static variable. Otherwise returnsfalse
. - bool isTopLevel
-
read-only, inheritedIs this declaration top-level?
- SourceLocation location
-
read-only, inheritedThe source location of this Dart language entity, or
null
if the entity is synthetic. - List<InstanceMirror> metadata
-
read-only, inheritedA list of the metadata associated with this declaration.
- DeclarationMirror owner
-
read-only, inheritedA mirror on the owner of this Dart language entity. This is the declaration immediately surrounding the reflectee.
- Symbol qualifiedName
-
read-only, inheritedThe fully-qualified name for this Dart language entity.
- Symbol simpleName
-
read-only, inheritedThe simple name for this Dart language entity.
- TypeMirror type
-
read-onlyReturns a mirror on the type of the reflectee.
Constructors
Operators
-
operator ==(
other) → bool -
Returns true if this mirror is equal to
other
.