1
votes

I'm new to DART, so I was looking for some program to test and I found a little space invaders game. I have import the project in WebStorm, but there's an error with the import, and I don't understand where does the error comes from:

enter image description here

Are there any missing libraries? I did download the dart-sdk and linked it when I installed WebStorm, but I didn't provide any link for Dartium, is that what causes the error?

1

1 Answers

1
votes

This is very old syntax (+2 years)

Use instead

import 'dart:html';