Комментарии:
yes do not discriminate null they have rights too xd
ОтветитьTotally same with Swift, but it's still awesome. Thanks Flutter team :D
ОтветитьI wasn't able to understand what null safety mean but now i understand thank you
ОтветитьAlso the larger general programming question is.... Is null a feature or bug?
ОтветитьGreat content!
ОтветитьToo Many NULLS in a 5 Minute video []~( ̄▽ ̄)~*
Ответить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 ??
👍
Ответить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.
avoid using ! , what i do it 90% of time
Ответитьvery respect <3 sir
ОтветитьThank you for such informative and easy to understand guide 😁
ОтветитьPlease fix the subtitles
Ответитьcan't you just swift for Flutter :-P
ОтветитьThanks for your explanation. What is your native language anyway?
Ответитьthanks a lot got my self clear on it he he he he he he
Ответить"Stay null-safe out there", hahaha that's hilarious
ОтветитьSuper video. Please create more news videos and tutorials.
ОтветитьBut it creates problem while declaring global variable.
ОтветитьGreat Video
Ответитьmy 2 hour search is over. At long last, a question mark saved the day!
ОтветитьThank you, much appreciated!
ОтветитьNice thank u.
i have a question. we should use ! when we guess maybe the value is null?
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.
ОтветитьThis really changed a lot from the last time i coded in dart
Ответить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!
Instead of a null crash I now have empty screens which are harder to debug. Not sure if this is an advancement.
ОтветитьThanks. Nice video as usual.
ОтветитьThanks a lot, great and simple video ❤
ОтветитьThank you
Ответить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?
This guy is really good at explaining Flutter stuff. Amazing video
ОтветитьIndeed. Stay null-safe, everyone!
Ответитьvery nice
Ответить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.
Ответитьbeautiful
ОтветитьGreat explanation! Thanks a lot
ОтветитьPlease fix the subtitles 🙏
They're lagging
Flutter team should reduce this dramatics in their videos ...looks pathetic
ОтветитьGood
ОтветитьVery well explained!
ОтветитьAwesome!
🚀
i'm going to start saying var-EYE-able every time now.
Ответитьnow i'm feeling better. u made it so easy.. thank you :)
Ответить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!
Ответить