#9 - Understanding Null Safety in Dart - Type Promotions, Null Assertion, Late, Required

preview_player
Показать описание
Hi there!

In this video I'll show you a complete and really in-depth in what I believe it's probably the most important addition to the Dart Language, and that is, null safety. In this tutorial you'll learn why null safety was introduced in the first place, what changes it does bring, what are type promotions, how to declare a nullable field, and many other more interesting topics on how to use the null assertion operator, the late and required keyword.

You can contact me directly here:

Also, if you want to support me furthermore you can become an YouTube Member, donate or buy my courses on Udemy, using the following links:

Рекомендации по теме
Комментарии
Автор

My Complete Dart Course is now live on Udemy! Go get it while it's hot!
Oh, and as a gift to my community, here's a limited-time coupon (LETSGETWCKD) helping you get it with as little as 9.99$.
It's a steal for the amount of work I put in.

Flutterly
Автор

The only video that really clears my concept of null safety. 😍 Thanks a lot Sir.

souravsuman
Автор

You had me at 01:45 when you connected the dart and the flutter logos to re-iterate the dart analogy that you have provided in the first video of this series. Creativity next level. Superb!
Thanks for your efforts and for making this invaluable programming tutorial series.

mohit-tater
Автор

just watched sound null safety from flutter channel and then watched this video, you are reallly very deep

muhammadmusa
Автор

Again clear and detailed tutorial for the Null Safety feature. Good work.

webghost
Автор

Firstly I make like 👍 in your video then start watching) just keep doing) your tutorial amazing ) you're helping a lot of people) just know
🙌

timatikgz
Автор

Wow! You are the best one who has explained such a complex topic. Many thanks indeed.

mazenalsakkaf
Автор

Thanks. As always another great tutorial 🙏🙏🙏

napo
Автор

This is a wonderful course for understanding the underlying working of Dart better however the title "Dart - from novice to expert" is rather misleading.

So far, what I have seen even from the start of the tutorial is that the tutorial already assume you are at least an intermediate programmer familiar with a lot of concepts and with already some languages under your belt to be able to follow this properly, and even, it assume you already are knowledgeable with at least one or more languages relatively similar to dart, and I would guess that an experienced python programmer but is a novice starting to learn Dart would struggle to follow most of this because of the way the topics are laid out.

So definitely not for novices in my humble opinion, feels more like a walkthrough of dart and its feature for those who already have experience which is exactly what I was looking for.

parito
Автор

Amazing explanations. I am coming from iOS and Swift, and all this was pretty natural to me I was so terrified seeing that Dart doesn't have optional types, and than they introduce it, but I was already working on a laaaarge project and this transition was so painful 😓

jasnamitrovic
Автор

at 15:26 why you said ''for the compiler or analyzer assigning top-level variables & static fields require ton of time" ?

qazqwe
Автор

What is the difference between 'assign', 'initilize' and 'declare' here.

qazqwe
Автор

sir that create a class final variable & named constructor than....problem showing class Todo {
final String id;
final String title;
final DateTime time;
Todo({this.id, this.title, this.time});
} The parameter 'time' can't have a value of 'null' because of its type, but the implicit default value is 'null'.
Try adding either an explicit non-'null' default value or the 'required' modifi

rabbilkabiraz
Автор

He is like a theoretical physicist explaining how to prepare tea. Of course it wouldn't be possible to boil water without the laws of physics, but do we have to derive equations to make a glass of tea?

kliberek
Автор

Guys here's a rule - First like the video, then watch the video.

abbasali