A ParameterMirror reflects a Dart formal parameter declaration.
- Implements
Properties
- InstanceMirror defaultValue
-
read-onlyIf this is a required parameter, returns
null
. Otherwise returns a mirror on the default value for this parameter. If no default is declared for an optional parameter, the default isnull
and a mirror onnull
is returned. - bool hasDefaultValue
-
read-onlyReturns
true
if the reflectee has explicitly declared a default value. Otherwise returnsfalse
. - bool isConst
-
read-only, inheritedReturns
true
if the reflectee is declaredconst
. Otherwise returnsfalse
. - bool isFinal
-
read-only, inheritedReturns
true
if the reflectee is a final variable. Otherwise returnsfalse
. - bool isNamed
-
read-onlyReturns
true
if the reflectee is a named parameter. Otherwise returnsfalse
. - bool isOptional
-
read-onlyReturns
true
if the reflectee is an optional parameter. 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-only, inheritedReturns
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-onlyA mirror on the type of this parameter.