Null safety in Dart - Introduction

Null safety in Dart - Introduction

Flutter

3 года назад

164,665 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@Alejandro-gg7oz
@Alejandro-gg7oz - 05.03.2021 14:52

yes do not discriminate null they have rights too xd

Ответить
@vutuananh747
@vutuananh747 - 06.03.2021 06:48

Totally same with Swift, but it's still awesome. Thanks Flutter team :D

Ответить
@algeriennesaffaires7017
@algeriennesaffaires7017 - 07.03.2021 06:45

I wasn't able to understand what null safety mean but now i understand thank you

Ответить
@kapowrobot7942
@kapowrobot7942 - 18.03.2021 17:55

Also the larger general programming question is.... Is null a feature or bug?

Ответить
@mihaelablenche
@mihaelablenche - 18.03.2021 18:08

Great content!

Ответить
@zafershah247
@zafershah247 - 30.03.2021 22:40

Too Many NULLS in a 5 Minute video []~( ̄▽ ̄)~*

Ответить
@arslankhan8825
@arslankhan8825 - 01.04.2021 01:02

void main() {
int? da=null;
print('hello ${da+1 }');
}
I don't understand the exact reason of null safety , above code need to apply null check. then whats the benefit ??

Ответить
@yujinkang4427
@yujinkang4427 - 14.04.2021 05:20

👍

Ответить
@hasankadeshapriyaweerasiri6156
@hasankadeshapriyaweerasiri6156 - 24.04.2021 12:02

How to add null safety for this -->
@Query
('SELECT * FROM Favorite WHERE uid=:uid AND id=:id')
Future<Favorite> getFavInFavByUid(String uid,int id);
Error --> Query method parameters have to be non-nullable. Define uid as non-nullable.

Ответить
@RahulGupta-go8oe
@RahulGupta-go8oe - 06.05.2021 09:51

avoid using ! , what i do it 90% of time

Ответить
@trungledang5225
@trungledang5225 - 06.05.2021 19:24

very respect <3 sir

Ответить
@tdrkDev
@tdrkDev - 07.05.2021 15:48

Thank you for such informative and easy to understand guide 😁

Ответить
@nifesalilislam1189
@nifesalilislam1189 - 24.05.2021 22:49

Please fix the subtitles

Ответить
@philschn5990
@philschn5990 - 26.05.2021 10:44

can't you just swift for Flutter :-P

Ответить
@wandermonk1266
@wandermonk1266 - 29.05.2021 09:54

Thanks for your explanation. What is your native language anyway?

Ответить
@harshkumaryadav3285
@harshkumaryadav3285 - 15.06.2021 15:50

thanks a lot got my self clear on it he he he he he he

Ответить
@pranjal86able
@pranjal86able - 24.06.2021 20:49

"Stay null-safe out there", hahaha that's hilarious

Ответить
@tananga1523
@tananga1523 - 01.07.2021 14:45

Super video. Please create more news videos and tutorials.

Ответить
@bikrampoudel4848
@bikrampoudel4848 - 29.07.2021 19:49

But it creates problem while declaring global variable.

Ответить
@sabuj745
@sabuj745 - 03.08.2021 10:30

Great Video

Ответить
@samuellamanyeaglago6919
@samuellamanyeaglago6919 - 13.08.2021 23:13

my 2 hour search is over. At long last, a question mark saved the day!

Ответить
@Magnetron692
@Magnetron692 - 14.08.2021 21:02

Thank you, much appreciated!

Ответить
@hosseinazem520
@hosseinazem520 - 14.09.2021 12:04

Nice thank u.
i have a question. we should use ! when we guess maybe the value is null?

Ответить
@YolunSonu1
@YolunSonu1 - 20.10.2021 10:37

Oh god, I developed an android app 2 years ago with older Dart version and I started to upgrade it in these days without knowing the language is almost completely changed.

Ответить
@pepepriest5973
@pepepriest5973 - 15.11.2021 18:52

This really changed a lot from the last time i coded in dart

Ответить
@MatthewPolack
@MatthewPolack - 21.11.2021 13:26

Thanks for this...there is a few of us taking a Beginner Flutter course with Angela Yu...and in one of the lesson she has us coding like this:

void main() {
greet(greeting: 'Hey', namePerson: 'Cindy');
}



void greet({String namePerson, String greeting}){
print("$greeting $namePerson");
}


But this now throws a Null error in the latest Dart.......us beginners in the comments note that we can fix this either by putting a '?' at the end of the String...or by placing the word 'required' before 'String'...but what should we do in this case ideally? Thanks for any clues if you have a moment!

Ответить
@Randomdude-i8x
@Randomdude-i8x - 04.12.2021 04:45

Instead of a null crash I now have empty screens which are harder to debug. Not sure if this is an advancement.

Ответить
@hasansalim1868
@hasansalim1868 - 11.12.2021 22:18

Thanks. Nice video as usual.

Ответить
@moazelsawaf2000
@moazelsawaf2000 - 28.01.2022 15:29

Thanks a lot, great and simple video ❤

Ответить
@ludanaltegani5654
@ludanaltegani5654 - 02.02.2022 20:29

Thank you

Ответить
@mrogalski
@mrogalski - 17.02.2022 10:40

Okay I'm just starting to learn flutter and all that dart thingy but this feels like obsessive fear of nulls. You've explained that you're not allowing "developers" ( read as pseudo developers ) to use null pointers/values just because they can hurt themselves? That's like the worst case I can think of and forcing usage of such mechanisms is wrong on it's base. Imagine having huge system that relies on some object value, let's even imagine it will be amount deducted from your client bank account and just by forcing reassignments of that value you can recieve some random number at the end of processing because "it cannot be null". This way the application instead of throwing an exception will just say "ok, we deducted this random number from you client bank account".

The real question is.. when we start treating developers as adults? Or when did we become so unaware that we need that much of assistance?

Ответить
@albertoazinar1209
@albertoazinar1209 - 01.04.2022 07:56

This guy is really good at explaining Flutter stuff. Amazing video

Ответить
@GeorgeNoiseless
@GeorgeNoiseless - 21.07.2022 19:01

Indeed. Stay null-safe, everyone!

Ответить
@heshansandeepa9471
@heshansandeepa9471 - 05.08.2022 10:26

very nice

Ответить
@NBSgamesOfficial
@NBSgamesOfficial - 19.10.2022 12:36

Knowing how annying NullPointerExceptions can be in Java and how NullSafety like this can be from Kotlin and Swift. I am going to love Dart even more than now... I hope it does grow out of java lol. Like. Go on. We have a Dart to javascript transcompiler. And I used it with a Cordova app a while back.

Ответить
@mokshchadha9151
@mokshchadha9151 - 16.12.2022 12:43

beautiful

Ответить
@heaven7pro
@heaven7pro - 12.01.2023 22:42

Great explanation! Thanks a lot

Ответить
@iitgsahil
@iitgsahil - 02.02.2023 08:07

Please fix the subtitles 🙏
They're lagging

Ответить
@manh9105
@manh9105 - 12.02.2023 06:21

Flutter team should reduce this dramatics in their videos ...looks pathetic

Ответить
@MammadBehify
@MammadBehify - 01.03.2023 17:38

Good

Ответить
@SibirianWolf1987
@SibirianWolf1987 - 21.07.2023 10:41

Very well explained!

Ответить
@pkgo1122
@pkgo1122 - 23.01.2024 09:50

Awesome!

🚀

Ответить
@robschannel1156
@robschannel1156 - 24.07.2024 16:59

i'm going to start saying var-EYE-able every time now.

Ответить
@bikashkalita8712
@bikashkalita8712 - 31.08.2024 21:31

now i'm feeling better. u made it so easy.. thank you :)

Ответить
@AltagraciaOlive
@AltagraciaOlive - 04.09.2024 05:33

you are by far the best person explaining binary options! Thank you for putting these videos together. I look forward every week to see your videos!

Ответить