Тёмный

Dart's Variables and Data Types - Learn About Final, Const, Late and Data Types in Dart 

Vandad Nahavandipoor
Подписаться 44 тыс.
Просмотров 15 тыс.
50% 1

This video is part of the Dart Crash Course playlist on RU-vid. See the entire playlist here: • Dart Crash Course
Welcome to Dart Crash Course. Dart is a beautiful and modern programming language that can be used both for frontend and backend applications. In this course, we will focus on Dart as a programming language without blending in any other frameworks such as Flutter.
In this video we will discuss variables and data types. We will talk about const, var, final and various data types that Dart recognizes!
Timestamps:
00:00 - Intro
04:18 - Const
15:44 - Final
20:43 - Mutating variables
23:58 - Assigning variables to each other
27:36 - Assigning to constant values
31:33 - Inferring data types
34:04 - Mutating of Const Contents
35:43 - Final Allows Mutation of Variable Contents
37:20 - Assigning Const and Final
38:19 - Late Variables
42:25 - Data Types
44:25 - Type Promotion
46:39 - Specifying Data Types
50:22 - Naming Conventions
54:58 - Various Data Types
Join the discord group if you have any questions: / discord
The GitHub repository for this course can be found here: github.com/vandadnp/youtube-c...
Join my RU-vid channel to support me: / vandadnp
Also please follow me on Twitter and LinkedIn to stay up to date:
/ vandadnp
/ vandadnp

Наука

Опубликовано:

 

13 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 51   
@ruqaiyasattar4985
@ruqaiyasattar4985 Год назад
Although I have completed ..advanced courses related dart, flutter...i will still watch this one video to ensure not to miss any details :D because I enjoy your courses..its fun to learn and relearn
@jelilabudu
@jelilabudu 7 месяцев назад
28:26 😮 I can't believe what I just heard. You can reassign final variable with the value of const variable but not the other way around. It's understandable, due to the fact that both types hold constant values, although final allows internal mutation.
@NOURELHOUDA-ey7ec
@NOURELHOUDA-ey7ec Год назад
thanks for the help , I've been coding for almost half a year now but i just knew some stuff that i never heard of during this 1h video , thank u again
@jelilabudu
@jelilabudu 7 месяцев назад
I developed a deep love for your style of teaching. Even though I've learned enough to get my feet dirty with Dart, I'm reviewing Dart through your videos.🎉🎉🎉
@Matheus-mr4tl
@Matheus-mr4tl 4 месяца назад
Really good class. Thank you.
@rcandidoa
@rcandidoa Год назад
Even if I have done some micro projects in Flutter/Dart, because of the lack of constancy I have to study all over again. Really, those videos are very good, the way you explain is very clear and I understand what I'm doing. I've decided to keep a constancy, although small, of at least one hour a day to be able to improve/gain skills with Flutter and I've decided to upload it to my repository. Honestly, if there's a place to start, it's this course. Thank you very much!!!
@verticrow
@verticrow Год назад
Really appreciate the effort that you put into these courses! Thanks!!
@VandadNP
@VandadNP Год назад
Glad you like them! 😊
@user-vi2fp6dl7b
@user-vi2fp6dl7b 6 месяцев назад
Thank you very much!
@marufhassan634
@marufhassan634 Год назад
I knew everything already but it was a good recap. You are a great teacher!
@VandadNP
@VandadNP Год назад
I’m glad to hear that. Thank you 😊
@wilsonchinedu813
@wilsonchinedu813 Год назад
I really enjoyed this particular course. You're awesome thank you. Moving on
@VandadNP
@VandadNP Год назад
You are so welcome
@sardoruchqunov977
@sardoruchqunov977 11 месяцев назад
I finally found my teacher to learn dart. I really thank you. good explained 👍👍
@sumirandahal76
@sumirandahal76 Год назад
Awesome tutor
@tayabfarooq2062
@tayabfarooq2062 Год назад
Thank You Vandad! You are amazing man!
@VandadNP
@VandadNP Год назад
I appreciate that, thank you 🤗
@swaggytho7705
@swaggytho7705 4 месяца назад
YESS THIS IS WHAT I WANT
@danasugu1767
@danasugu1767 Год назад
Awesome, thanks!
@VandadNP
@VandadNP Год назад
You're most welcome 😊
@TechInFunWay
@TechInFunWay 4 месяца назад
we are in the same opinion of it will be good to name src instead of bin
@cetologist
@cetologist 7 месяцев назад
Quick nitpick for 8:21, in Rust variables are immutable by default and "const" is used for (global) values that can only be computed at compile-time and don't have one memory address associated with them, pretty much like "constexpr" in C++
@hussainkhuzema7083
@hussainkhuzema7083 Год назад
Please do a video making extension in dart. I watch all ur courses on flutter and was amazed on how u use extension to make your task easier.
@gentechcomputing
@gentechcomputing Год назад
woow .... i love how you teach. May God really bless you.
@VandadNP
@VandadNP Год назад
I appreciate that, thank you 😊
@georgethomas4780
@georgethomas4780 Год назад
great
@JoeGoldberg-ee7eq
@JoeGoldberg-ee7eq Год назад
Sir this wonderful course will be of how many hours ?
@dev.faizan
@dev.faizan Год назад
amazing
@VandadNP
@VandadNP Год назад
Glad you liked it 😊
@deepakjoyjose8189
@deepakjoyjose8189 Год назад
Are you using an extension to show inline warnings in the editor?
@harshgoswami8805
@harshgoswami8805 Год назад
Sir would Make video on how to code game engine?
@jelilabudu
@jelilabudu 7 месяцев назад
20:26 const v/s final: You can't reassign const variable or change the internal value of a const variable. For a final variable, you can change its internal value, but you can't reassign to it a new value after it's already been assigned.
@user-ts7cj7rj7j
@user-ts7cj7rj7j Год назад
28:36 even though you did not write anything, it recommends const [ name = 'foo';]. could you tell me which extension do you use for it? thank you!
@VandadNP
@VandadNP Год назад
That is GitHub Copilot
@user-ts7cj7rj7j
@user-ts7cj7rj7j Год назад
@@VandadNP thank you!!
@hwangblood
@hwangblood Год назад
how do you make the code sugguestions showing at end of line? what vscode extentions is using?
@VandadNP
@VandadNP Год назад
Error Lens 😊
@hwangblood
@hwangblood Год назад
@@VandadNP thanks
@liberty5493
@liberty5493 Год назад
What is the alternative to fswatch on windows?
@Mike_bbbbb
@Mike_bbbbb 10 месяцев назад
If you're using VS Code you can use the Code Runner extension to output your code.
@goldboolean6819
@goldboolean6819 Год назад
I left the specify type in linter and dart complained about missing type annotation for List
@kyesiltepe
@kyesiltepe Год назад
Hi @Vandad Nahavandipoor , I am really bored with RU-vid ads which are shown every 2 or 3 minutes while watching your videos. Do you have a solution for this?
@VandadNP
@VandadNP Год назад
Hi. I don’t know how YT algorithms work but I believe they decide how often ads are displayed based on certain criteria because I cannot steer that unfortunately 🥲
@HurtaEdu
@HurtaEdu Год назад
Hi, I'm windows 11 user, I download and charge the WSL ubuntu virtual machine and I opened the wsl console, when I trynna do this command fswatch -o bin/ | xargs -n1 -I{} sh -c 'clear; dart bin/example.dart' it didn't work and appear a message that says " xargs: warning: options --max-args and --replace/-I/-i are mutually exclusive, ignoring previous --max-args value" Please help me this problem
@ralphstube
@ralphstube 9 дней назад
Did you find a fix? I installed with cygwin and get the same xargs warning.
@elieyass3799
@elieyass3799 7 дней назад
@@ralphstube any fix ?
@ralphstube
@ralphstube 5 дней назад
@@elieyass3799 hi, remove the -I{} which is just for macs.
@tarangsharma2898
@tarangsharma2898 Год назад
command used in video: fswatch -o bin/ | xargs -n1 -I{} sh -c 'clear'; dart bin/example.dart'
Далее
C++ Tutorial for Beginners - Learn C++ in 1 Hour
1:22:56
Best father #shorts by Secret Vlog
00:18
Просмотров 16 млн
Rust Data Modelling Without Classes
11:25
Просмотров 165 тыс.
Java Data Structures Tutorial
1:39:50
Просмотров 326 тыс.
Flutter: BLoC Testing in 10 Minutes
13:49
Просмотров 887
CppCon 2014: Mike Acton "Data-Oriented Design and C++"
1:27:46
Игровой Комп с Авито за 4500р
1:00