classSignature method
Implementation
OneLine classSignature() {
final sb = StringBuffer();
if (isInterface) {
sb.write('@interface');
}
if (isProtocol) {
sb.write('@protocol');
}
sb.write(keywordSpace);
sb.write(className);
if (hasExtension) {
sb.write(keywordSpace);
sb.write('(');
sb.write(extensionName);
sb.write(')');
}
if (parentClass.isNotEmpty) {
sb.write(' : ');
sb.write(parentClass);
}
return OneLine(depth: depth, body: sb.toString());
}