FunctionDeclarationNode class
A function or method declaration.
- Inheritance
-
- Object
- DartNode
- DeclarationNode
- FunctionDeclarationNode
Constructors
-
FunctionDeclarationNode({required String name, TypeNode? returnType, List<
TypeParameterNode> typeParameters = const [], List<ParameterNode> parameters = const [], FunctionBodyNode? body, bool isStatic = false, bool isAbstract = false, bool isExternal = false, bool isGetter = false, bool isSetter = false, bool isOperator = false}) -
const
Properties
- body → FunctionBodyNode?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAbstract → bool
-
final
- isExternal → bool
-
final
- isGetter → bool
-
final
- isOperator → bool
-
final
- isSetter → bool
-
final
- isStatic → bool
-
final
- name → String
-
final
-
parameters
→ List<
ParameterNode> -
final
- returnType → TypeNode?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
typeParameters
→ List<
TypeParameterNode> -
final
Methods
-
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