CHAPTER 2

image

Your First Dart Programs

It is a tradition in programming to introduce a new programmer to a language with a program that produces a message of “Hello, World!” This should be the easiest task you ever do in programming. Here’s how you do it in Dart.

Hello, World!

Start a new application of type “Command Line” in Dart Editor called “HelloWorld.” You can do this by going to the File menu and selecting “New Application.” A dialog will pop up that allows you to select the application type (“Command Line”), a name for the application (“HelloWorld”), and the place on your computer where you want to store the application’s files (up to you). ...

Get Dart for Absolute Beginners now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.