Clojuredart:class ...没有实例方法'呼叫'
我遇到了这个错误。 我有一个尺寸的对象,我想获得其高度和宽度。在我的clojuredart代码中,我做到了:
(.height size)
在Dart中给出了:
(size.height() as double)
我该如何访问此属性,我知道这不是函数/方法?
顺便说一句,我有那些警告:
Stern warning: can't resolve member height on target type dynamic of library dart:core at line: 25, column: 42, file: ifs/main.cljd
Stern warning: can't resolve member width on target type dynamic of library dart:core at line: 25, column: 57, file: ifs/main.cljd
I have encountered this error.
I have a Size object, and I want to get its height and width. In my clojureDart code, I did:
(.height size)
which gave in Dart:
(size.height() as double)
How can I access this property, which I know isn't a function/method ?
Btw I had those warnings:
Stern warning: can't resolve member height on target type dynamic of library dart:core at line: 25, column: 42, file: ifs/main.cljd
Stern warning: can't resolve member width on target type dynamic of library dart:core at line: 25, column: 57, file: ifs/main.cljd
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,我应该指定我的变量大小是哪种类型。
这样:
没有警告或错误!
Ok, I should have specify what type my variable size was.
Like this :
No warnings nor error!