FunctionMirror class

reflects functions declared in a Dart program.

Inheritance

Constructors

FunctionMirror({required String name, FunctionCall? $call, dynamic returnType, List<DeclarationMirror>? positionalParameters, Map<String, DeclarationMirror>? namedParameters, List<Annotation>? annotations})
const

Properties

$call FunctionCall?
Used only for constructors. It creates new instances with the map of parameters passed
final
annotations List<Annotation>?
annotations of the element
finalinherited
hashCode int
The hash code for this object.
no setterinherited
name String
finalinherited
namedParameters Map<String, DeclarationMirror>?
parameters of the function
final
parameters List<DeclarationMirror>?
no setter
positionalParameters List<DeclarationMirror>?
positional parameters of the function
final
returnType → dynamic
return type of the function
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call([List? positionalParams, Map<String, dynamic>? namedParams]) → dynamic
Used only for constructors. It creates new instances with the map of parameters passed
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited