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

Implements

Properties

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

Constructors

MethodMirror()

Operators

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