getImplementationDeclaration method

OCClassDeclaration getImplementationDeclaration()

生成 UniCallback 在实现文件中的私有类声明

Implementation

OCClassDeclaration getImplementationDeclaration() {
  registerCustomType('id');
  return OCClassDeclaration(
      depth: depth,
      className: getName(methodName, paramName),
      hasExtension: true,
      isInterface: true,
      properties: [
        Variable(AstString(), 'callbackName'),
        Variable(
            AstCustomType('id',
                generics: [AstCustomType('FlutterBinaryMessenger')]),
            'binaryMessenger')
      ]);
}