User Input In Dart - Learn Dart Programming

  Рет қаралды 5,103

Dart Tutorial

Dart Tutorial

Күн бұрын

Пікірлер: 9
@fathimathulnazasaleem961
@fathimathulnazasaleem961 10 ай бұрын
good videos
@karanjadhav2041
@karanjadhav2041 Жыл бұрын
At 4:42 you changed the method from directly getting number from int variable, you first crated value variable from string then calculated square ... can you pls tell me why so why didn't first method work out
@shahd6228
@shahd6228 Жыл бұрын
Because the input from the user is always a String. String? value = stdin.readLineSync(); it reads a line of text from the user and saves it to the variable value Then we should ensure that the value is not null, that's why he used the method toString() on the value by writing: value.toString() then he parsed it to an integer with the method int.parse Btw here he does not have to use toString to ensure that value is not null, because value is already a String. He could have used the null assertion operator ! to tell Dart that we're sure that value is not null, so we can safely pass it to the int.parse() method without calling toString(). So he could write: int numericValue = int.parse(value!);
@BrianMantel
@BrianMantel 7 ай бұрын
@@shahd6228 Thank you. I've been trying to figure out what the ! was for. :)
@harisharma2520
@harisharma2520 2 жыл бұрын
Thank you for dart tutorial
@darttutorial
@darttutorial 2 жыл бұрын
Happy learning dart
@khubaibirfan9215
@khubaibirfan9215 Жыл бұрын
❤️❤️❤️❤️
@SRSvlog770
@SRSvlog770 2 жыл бұрын
Hello Bishoraj brother which software do you use for screen recoder as well as video editing
@darttutorial
@darttutorial 2 жыл бұрын
OBS for recording, Premiere for editing
String In Dart - Learn Dart Programming
26:05
Dart Tutorial
Рет қаралды 2,3 М.
Data Types In Dart - Learn Dart Programming
33:54
Dart Tutorial
Рет қаралды 4,1 М.
отомстил?
00:56
История одного вокалиста
Рет қаралды 2,5 МЛН
An Unknown Ending💪
00:49
ISSEI / いっせい
Рет қаралды 19 МЛН
The FASTEST way to PASS SNACKS! #shorts #mingweirocks
00:36
mingweirocks
Рет қаралды 16 МЛН
小丑和白天使的比试。#天使 #小丑 #超人不会飞
00:51
超人不会飞
Рет қаралды 41 МЛН
Getting User Input - Learn Dart Programming 9
4:14
Codemy.com
Рет қаралды 7 М.
Switch Case In Dart - Learn Dart Programming
14:09
Dart Tutorial
Рет қаралды 1,6 М.
Learn The Dart Programming Language - Complete Free Course!
1:21:11
Convert User Input String To Int - Learn Dart Programming 11
6:02
Dart Basics - Reading input from the console
4:45
Johan Jurrius
Рет қаралды 27 М.
Dart Programming User Input and Simple Calculator
6:16
Timothy Unkert Coding
Рет қаралды 339
Interface In Dart - Learn Dart Programming
23:32
Dart Tutorial
Рет қаралды 2,6 М.
Errors with stdin.readLineSync()
2:20
Johan Jurrius
Рет қаралды 11 М.
Inheritance In Dart - Learn Dart Programming
20:28
Dart Tutorial
Рет қаралды 3,3 М.
отомстил?
00:56
История одного вокалиста
Рет қаралды 2,5 МЛН