Day 3 of Flutter

Dart pad

debug console and terminal


instead of just writing print Life is beautiful 3 times like this

print("Life is beautiful");

print("Life is beautiful");

print("Life is beautiful");


We can assign a variable to represent the string known as Life is beautiful so

x = "life is beautiful"

print(x);

print(x);

print(x);



Remember x is not a string and life is beautiful is string since its the value we want printed


we could do it that way or we could have done:

String x = "life is beautiful";

print(x);

print(x);

print(x);

and that could still fulfil it


var is variable so it gives us a variable


print x.runtimeType will make stuff fast


List<Sting> x = ["hello there"];

print(x);


for example:

var x = [14, "Samrat", "Julia", "11"]

if we print x it gives us the whole thing



To view or add a comment, sign in

More articles by Sam Bhusal

  • AWS Questions - 10/6/2021

    What is Cloud computing ? Cloud computing is the distribution of computing services like storages, databases, software,…

  • Day 5 Python

    Day 5 Python How to be successful in python? To practice and practice. Programming using variables What is variable?…

  • Python Day 2

    Python Continued..

  • Day 14 of flutter class

    1)What is statelesswidget ? A stateless widget in flutter is is defined as any widget which changes its state within…

  • JSON and API, etc …

    What is API and how to create own API? The set of functions and procedures allowing the creation of applications that…

  • Day 1 of AWS 10/12/2020

    What is Cloud computing ? Cloud computing is the distribution of many distinct services. How AWS cloud is different…

  • Day 1 Intro to Python

    Day 1 Session 1 Before beginning Python we should first address some questions that generally arouse in first time…

  • Intro to Linux/Unix 3/21/2021 Overview

    Chapter 1 The Standard Boot process for PC Power to Computer The Basic Input/output system (BIOS) is read from a chip…

Explore content categories