A ParameterMirror reflects a Dart formal parameter declaration.

Implements

Properties

defaultValue InstanceMirror

If 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 is null and a mirror on null is returned.

read-only
hasDefaultValue bool

Returns true if the reflectee has explicitly declared a default value. Otherwise returns false.

read-only
hashCode int

Get a hash code for this object.

read-only, inherited
isConst bool

Returns true if the reflectee is declared const. Otherwise returns false.

read-only, inherited
isFinal bool

Returns true if the reflectee is a final variable. Otherwise returns false.

read-only, inherited
isNamed bool

Returns true if the reflectee is a named parameter. Otherwise returns false.

read-only
isOptional bool

Returns true if the reflectee is an optional parameter. Otherwise returns false.

read-only
isPrivate bool

Returns true if this declaration is considered private according to the Dart language specification. Always returns false if this declaration is a library. Otherwise return false.

read-only, inherited
isStatic bool

Returns true if the reflectee is a static variable. Otherwise returns false.

read-only, inherited
isTopLevel bool

Is this declaration 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<InstanceMirror>

A list of the metadata associated with this declaration.

read-only, inherited
owner DeclarationMirror

A mirror on the owner of this Dart language entity. This is the declaration immediately surrounding the reflectee.

read-only, inherited
qualifiedName Symbol

The fully-qualified name for this Dart language entity.

read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited
simpleName Symbol

The simple name for this Dart language entity.

read-only, inherited
type TypeMirror

A mirror on the type of this parameter.

read-only

Constructors

ParameterMirror()

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

noSuchMethod(Invocation invocation) → dynamic

noSuchMethod is invoked when users invoke a non-existent method on an object. The name of the method and the arguments of the invocation are passed to noSuchMethod in an Invocation. If noSuchMethod returns a value, that value becomes the result of the original invocation.

inherited
toString() String

Returns a string representation of this object.

inherited