Method class
Constructors
-
Method({required VariableName name, TypeName returnType = TypeName.empty, Parameters parameters = Parameters.empty, bool isStatic = false, bool arrow = false, bool isAsync = false, Iterable<
Code> content = const []})
Properties
- arrow → bool
-
finalinherited
- childrenSeparator → String
-
no setterinherited
-
content
→ Iterable<
Code> -
finalinherited
- hasBody → bool
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasReturnType → bool
-
no setter
- isAsync → bool
-
finalinherited
- isStatic → bool
-
final
- name → VariableName
-
final
- parameters → Parameters
-
finalinherited
- returnType → TypeName
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
afterParameters(
) → String -
inherited
-
beforeParameters(
) → String -
inherited
-
children(
) → Iterable< Code> -
inherited
-
code(
) → String -
inherited
-
decorate(
String code) → String -
inherited
-
end(
) → String -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
start(
) → String -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
writeTo(
File file) → Future< void> -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited