A MethodMirror reflects a Dart language function, method, constructor, getter, or setter.
- Implements
Properties
- Symbol constructorName
-
read-onlyThe constructor name for named constructors and factory methods.
- bool isAbstract
-
read-onlyIs the reflectee abstract?
- bool isConstConstructor
-
read-onlyIs the reflectee a const constructor?
- bool isConstructor
-
read-onlyIs the reflectee a constructor?
- bool isFactoryConstructor
-
read-onlyIs the reflectee a factory constructor?
- bool isGenerativeConstructor
-
read-onlyIs the reflectee a generative constructor?
- bool isGetter
-
read-onlyIs the reflectee a getter?
- bool isOperator
-
read-onlyIs the reflectee an operator?
- bool isPrivate
-
read-only, inheritedReturns
true
if this declaration is considered private according to the Dart language specification. Always returnsfalse
if this declaration is a library. Otherwise returnfalse
. - bool isRedirectingConstructor
-
read-onlyIs the reflectee a redirecting constructor?
- bool isRegularMethod
-
read-onlyIs the reflectee a regular function or method?
- bool isSetter
-
read-onlyIs the reflectee a setter?
- bool isStatic
-
read-onlyA function is considered non-static iff it is permited to refer to 'this'.
- bool isSynthetic
-
read-onlyReturns true if the reflectee is synthetic, and returns false otherwise.
- bool isTopLevel
-
read-only, inheritedIs this declaration top-level?
- SourceLocation location
-
read-only, inheritedThe source location of this Dart language entity, or
null
if the entity is synthetic. - List<InstanceMirror> metadata
-
read-only, inheritedA list of the metadata associated with this declaration.
- DeclarationMirror owner
-
read-only, inheritedA mirror on the owner of this Dart language entity. This is the declaration immediately surrounding the reflectee.
- List<ParameterMirror> parameters
-
read-onlyA list of mirrors on the parameters for the reflectee.
- Symbol qualifiedName
-
read-only, inheritedThe fully-qualified name for this Dart language entity.
- TypeMirror returnType
-
read-onlyA mirror on the return type for the reflectee.
- Symbol simpleName
-
read-only, inheritedThe simple name for this Dart language entity.
- String source
-
read-onlyThe source code for the reflectee, if available. Otherwise null.
Constructors
Operators
-
operator ==(
other) → bool -
Returns true if this mirror is equal to
other
.