getPublicDeclaration method
生成 UniCallback 在头文件中的类声明
Implementation
OCClassDeclaration getPublicDeclaration() {
return OCClassDeclaration(
depth: depth,
className: getName(methodName, paramName),
parentClass: 'NSObject',
isInterface: true,
instanceMethods: [
Method(
name: 'onEvent', parameters: [Variable(paramGeneric, 'callback')])
]);
}