class
MethodMirror

A MethodMirror reflects a Dart language function, method, constructor, getter, or setter.

Implements

Properties

TypeMirror returnType
read-only
A mirror on the return type for the reflectee.
String source
read-only
The source code for the reflectee, if available. Otherwise null.
List<ParameterMirror> parameters
read-only
A list of mirrors on the parameters for the reflectee.
bool isStatic
read-only
A function is considered non-static iff it is permited to refer to 'this'.
bool isAbstract
read-only
Is the reflectee abstract?
bool isSynthetic
read-only
Returns true if the reflectee is synthetic, and returns false otherwise.
bool isRegularMethod
read-only
Is the reflectee a regular function or method?
bool isOperator
read-only
Is the reflectee an operator?
bool isGetter
read-only
Is the reflectee a getter?
bool isSetter
read-only
Is the reflectee a setter?
bool isConstructor
read-only
Is the reflectee a constructor?
Symbol constructorName
read-only
The constructor name for named constructors and factory methods.
bool isConstConstructor
read-only
Is the reflectee a const constructor?
bool isGenerativeConstructor
read-only
Is the reflectee a generative constructor?
bool isRedirectingConstructor
read-only
Is the reflectee a redirecting constructor?
bool isFactoryConstructor
read-only
Is the reflectee a factory constructor?
DeclarationMirror owner
read-only , inherited
A mirror on the owner of this Dart language entity. This is the declaration immediately surrounding the reflectee.
SourceLocation location
read-only , inherited
The source location of this Dart language entity, or null if the entity is synthetic.
bool isPrivate
read-only , inherited
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.
Symbol simpleName
read-only , inherited
The simple name for this Dart language entity.
List<InstanceMirror> metadata
read-only , inherited
A list of the metadata associated with this declaration.
bool isTopLevel
read-only , inherited
Is this declaration top-level?
Symbol qualifiedName
read-only , inherited
The fully-qualified name for this Dart language entity.

Constructors

MethodMirror()

Operators

operator ==(other) → bool
Returns true if this mirror is equal to other.