functionSignature method
Implementation
String functionSignature() {
final sb = StringBuffer();
if (!isConstructor) {
if (isStatic) {
sb.write('static');
sb.write(' ');
}
sb.write(returnType.dartType(showGenerics: true));
sb.write(' ');
}
sb.write(functionName);
sb.write('(');
sb.write(params
.map((e) => '${e.type.dartType(showGenerics: true)} ${e.name}')
.join(', '));
sb.write(')');
return sb.toString();
}