MethodMirror class Null safety

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

Implemented types

Constructors

MethodMirror()

Properties

constructorName String
The constructor name for named constructors and factory methods. [...]
read-only
dynamicReflectedReturnType Type
If hasDynamicReflectedReturnType is true, returns the corresponding Type as specified for dynamicReflectedType in ClassMirror. Otherwise, an UnsupportedError is thrown. [...]
read-only
hasDynamicReflectedReturnType bool
Returns the value specified with hasDynamicReflectedType in ClassMirror, but for the return type given by the annotation of the method modeled by this mirror. [...]
read-only
hashCode int
Override requested by linter.
read-only, override
hasReflectedReturnType bool
Returns the value specified with hasReflectedType in TypeMirror, but for the return type given by the annotation of the method modeled by this mirror. [...]
read-only
isAbstract bool
Is the reflectee abstract? [...]
read-only
isConstConstructor bool
Is the reflectee a const constructor? [...]
read-only
isConstructor bool
Is the reflectee a constructor? [...]
read-only
isFactoryConstructor bool
Is the reflectee a factory constructor? [...]
read-only
isGenerativeConstructor bool
Is the reflectee a generative constructor? [...]
read-only
isGetter bool
Is the reflectee a getter? [...]
read-only
isOperator bool
Is the reflectee an operator? [...]
read-only
isPrivate bool
Whether this declaration is library private. [...]
read-only, inherited
isRedirectingConstructor bool
Is the reflectee a redirecting constructor? [...]
read-only
isRegularMethod bool
Is the reflectee a regular function or method? [...]
read-only
isSetter bool
Is the reflectee a setter? [...]
read-only
isStatic bool
A function is considered non-static iff it is permited to refer to 'this'. [...]
read-only
isSynthetic bool
Returns true if the reflectee is synthetic, and returns false otherwise. [...]
read-only
isTopLevel bool
Whether this declaration is 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<Object>
A list of the metadata associated with this declaration. [...]
read-only, inherited
owner DeclarationMirror
A mirror on the owner of this Dart language entity. [...]
read-only, override
parameters List<ParameterMirror>
A list of mirrors on the parameters for the reflectee. [...]
read-only
qualifiedName String
The fully-qualified name for this Dart language entity. [...]
read-only, inherited
reflectedReturnType Type
If hasReflectedReturnType is true, returns the corresponding Type. Otherwise, an UnsupportedError is thrown. [...]
read-only
returnType TypeMirror
A mirror on the return type for the reflectee. [...]
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
simpleName String
The simple name for this Dart language entity. [...]
read-only, inherited
source String?
The source code for the reflectee, if available. Otherwise null. [...]
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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