Method constructor
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 [],
Implementation
Method({
required this.name,
this.returnType = TypeName.empty,
Parameters parameters = Parameters.empty,
this.isStatic = false,
bool arrow = false,
bool isAsync = false,
Iterable<Code> content = const [],
}) : super(
arrow: arrow,
isAsync: isAsync,
parameters: parameters,
content: content,
);