DartFunction class

Represents a DartFunction See: https://dart.dev/guides/language/language-tour#functions

Inheritance

Constructors

DartFunction.main(CodeNode body, {List<DocComment> docComments = const [], List<Annotation> annotations = const [], Parameters? parameters, Asynchrony? asynchrony})
DartFunction.withName(String name, CodeNode body, {List<DocComment> docComments = const [], List<Annotation> annotations = const [], Type? returnType, Parameters? parameters, Asynchrony? asynchrony})
DartFunction.withoutName(CodeNode body, {List<DocComment> docComments = const [], List<Annotation> annotations = const [], Type? returnType, Parameters? parameters, Asynchrony? asynchrony})

Properties

annotations List<Annotation>
final
asynchrony Asynchrony?
final
body Body
final
docComments List<DocComment>
final
hashCode int
The hash code for this object.
no setterinherited
name IdentifierStartingWithLowerCase?
final
parameters Parameters?
final
returnType Type?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

codeNodes(Context context) List<CodeNode>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
toUnFormattedString(Context context) String
Recursive call to get the unformatted code from all nodes
inherited

Operators

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