Print to the console

on Sunday, 12th of July, 2020

In a previous lesson, you saw a program that print's "Hello, World" to the console.

void main() {
  print('Hello, World!');

print is used to log to the console. It's often helpful when you're debugging a Dart program.

void main() {
    // change string to print whatever you'd like!
    print("Hello, World!");

Join thousands of Flutter developers.

Sign up for infrequent updates about Flutter and Dart.

You can get all this content and more in one place. Check out my new book Flutter in Action