Getting a NoSuchMethodError in Dart

前端 未结 1 789
北海茫月
北海茫月 2021-01-19 08:03

I\'m pretty new to Dart, and I\'m used to working with C# (and XNA usually), so Dart is a little different, and I\'m not sure why this error is happening.



        
相关标签:
1条回答
  • 2021-01-19 09:07

    Here c.Position.x is null. In Dart calling a method (or an operator - in your case) on null leads to a NoSuchMethodError.

    0 讨论(0)
提交回复
热议问题