MethodMirror class - dart:mirrors library (original) (raw)

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

Implemented types

Constructors

MethodMirror()

Properties

constructorNameSymbol

The constructor name for named constructors and factory methods.

no setter

hashCodeint

The hash code for this object.

no setterinherited

isAbstractbool

Is the reflectee abstract?

no setter

isConstConstructorbool

Is the reflectee a const constructor?

no setter

isConstructorbool

Is the reflectee a constructor?

no setter

isExtensionMemberbool

Is the reflectee an extension method?

no setter

isExtensionTypeMemberbool

Is the reflectee an extension type method?

no setter

isFactoryConstructorbool

Is the reflectee a factory constructor?

no setter

isGenerativeConstructorbool

Is the reflectee a generative constructor?

no setter

isGetterbool

Is the reflectee a getter?

no setter

isOperatorbool

Is the reflectee an operator?

no setter

isPrivatebool

Whether this declaration is library private.

no setterinherited

isRedirectingConstructorbool

Is the reflectee a redirecting constructor?

no setter

isRegularMethodbool

Is the reflectee a regular function or method?

no setter

isSetterbool

Is the reflectee a setter?

no setter

isStaticbool

A function is considered non-static iff it is permitted to refer to 'this'.

no setter

isSyntheticbool

Returns true if the reflectee is synthetic, and returns false otherwise.

no setter

isTopLevelbool

Whether this declaration is top-level.

no setterinherited

locationSourceLocation?

The source location of this Dart language entity, or null if the entity is synthetic.

no setterinherited

metadataList<InstanceMirror>

A list of the metadata associated with this declaration.

no setterinherited

ownerDeclarationMirror?

A mirror on the owner of this Dart language entity.

no setterinherited

parametersList<ParameterMirror>

A list of mirrors on the parameters for the reflectee.

no setter

qualifiedNameSymbol

The fully-qualified name for this Dart language entity.

no setterinherited

returnTypeTypeMirror

A mirror on the return type for the reflectee.

no setter

runtimeTypeType

A representation of the runtime type of the object.

no setterinherited

simpleNameSymbol

The simple name for this Dart language entity.

no setterinherited

sourceString?

The source code for the reflectee, if available. Otherwise null.

no setter

Methods

noSuchMethod(Invocation invocation)→ dynamic

Invoked when a nonexistent method or property is accessed.

inherited

toString()→ String

A string representation of this object.

inherited

Operators

operator ==(Object other)→ bool

Whether this mirror is equal to other.

override