JavaClassAsyncResult constructor

JavaClassAsyncResult({
  1. int depth = 0,
})

Implementation

JavaClassAsyncResult({int depth = 0})
    : super(depth: depth, className: 'Result', isInterface: true, generics: [
        'T'
      ], methods: [
        Method(
            name: 'success',
            parameters: [Variable(AstCustomType('T'), 'result')])
      ]) {
  // 注册范型
  registerCustomType('T');
}