If you simlpy want to print text to the console you can use print(‘Text’) . But if you want to access the advanced fatures of the DevTools console you need to use the Console class from dart:html : Console. log(‘Text’) . It supports printing on different levels (info, warn, error, debug).
Read moreHow do you write a program in Dart?
Step – 1: Type dart on the terminal if it is showing dart runtime then Dart is successfully installed. Step – 2: Open a text editor and create a file called “helloword.
Read more