Method class

Represents a Class Method or PropertyAccessor See: https://dart.dev/guides/language/language-tour#methods

Inheritance

Constructors

Method(String name, CodeNode body, {List<DocComment> docComments = const [], List<Annotation> annotations = const [], Type? type, Parameters? parameters, Asynchrony? asynchrony})
Method.abstract(String name, {List<DocComment> docComments = const [], List<Annotation> annotations = const [], Type? type, PropertyAccessor? propertyAccessor, Parameters? parameters, Asynchrony? asynchrony})
Method.getter(String name, CodeNode body, {List<DocComment> docComments = const [], List<Annotation> annotations = const [], bool final$ = false, Type? type, Parameters? parameters, Asynchrony? asynchrony})
Method.setter(String name, CodeNode body, {List<DocComment> docComments = const [], List<Annotation> annotations = const [], Type? type, Parameters? parameters, Asynchrony? asynchrony})
Method.static(String name, CodeNode body, {List<DocComment> docComments = const [], List<Annotation> annotations = const [], Type? type, Parameters? parameters, Asynchrony? asynchrony})

Properties

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

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