The way i use educative is to practice with your inline editor and also on my local machine using visual studio code.
I found the code given in this section for learning the Dart language giving out errors on my local machine but your inline editor worked
Could you please explain if the code is outdated for the latest version of dart?