No video

Dart STATIC variables and methods. Dart Tutorial for Flutter #9.8

  Рет қаралды 46,030

Smartherd

Smartherd

Күн бұрын

Access 7000+ courses for 15 days FREE: pluralsight.px...
Dart for Beginners: Static methods and static variables are also known as Class Methods and Class Variables respectively. They can be created using 'static' keyword. Along with all these, also explore what is CONSTANT Static variables.
Next Video : • Dart Lambda Expression...
Previous Video : • Dart INTERFACE ( imple...
Code Files: bit.ly/2xHSqkQ .
.
Please donate and support my work
(If you think my free tutorials are better than paid ones :)
- Patreon: bit.ly/patreon...
- Paypal/Payoneer: sriyank123@gmail.com
- UPI (only for India): smartherd@okaxis
:: If you want to develop a website or a mobile app, email me your requirement at sriyank.siddhartha@gmail.com :: Free demos provided beforehand ::
- Access my premium courses: bit.ly/sriyank...
Free Programming courses:
- Ruby Programming: bit.ly/smyt-r
- Dart Programming: bit.ly/smyt-d
- Kotlin Programming: bit.ly/smyt-k
- Java Programming: bit.ly/smyt-j
- Kotlin Coroutines: bit.ly/smyt-coru
Free Flutter course:
- Flutter App Development: bit.ly/2Rg7EFR
Free Android courses:
- Android using Kotlin: bit.ly/smyt-ka
- Android using Java: bit.ly/smyt-ja
- Android Material Design: bit.ly/2SMJqU6
- Android Jetpack Architecture: bit.ly/yt-j
- Android Multiple Screen Support: bit.ly/smyt-mss
- Android Retrofit: bit.ly/2Ee6GHn
More free programming courses:
- bit.ly/smy-list
Check out my website:
- bit.ly/smartherd
Let's get in touch! [Sriyank Siddhartha]
LinkedIn: bit.ly/sriyank...
Facebook: bit.ly/smarthe...
Instagram: bit.ly/sriyank...
Twitter: bit.ly/sriyank...
Github: bit.ly/smarthe...
--- Thank you for your love and support ---

Пікірлер: 46
@DanielHenryThomas
@DanielHenryThomas 5 жыл бұрын
as a Flutter newbie, I can say your video has been really helpful to me, I am very grateful. Thank you !!!
@ammarsinan2706
@ammarsinan2706 2 жыл бұрын
The way you explain is very clear and straight to the point. you deliver the concepts without me having to repeat the video, thank you for your efforts.
@smartherd
@smartherd 2 жыл бұрын
Keep, liking and commenting to support. Thanks buddy
@aladdinovich
@aladdinovich 5 жыл бұрын
very useful and very clear, thanks a lot for your efforts making these tutorials.
@karthickrajalearn
@karthickrajalearn 5 жыл бұрын
In 6m 09 sec Thanks for Explaining When we use static and const keyword in same place
@yousafahmad896
@yousafahmad896 Жыл бұрын
love the way of conveying lecture seriously fall in love❣❣❣❣❣❣❣❣❣ appreciated sir
@JK92007
@JK92007 6 жыл бұрын
Now start flutter....You can do this very nicely....☺☺😊😊☺☺☺👍👍👍💐💐
@karthickrajalearn
@karthickrajalearn 5 жыл бұрын
In 3m 55sec Thanks for Explaining Why and When we use Static Keywords
@maniamadrid
@maniamadrid 5 жыл бұрын
Thank sir for sharing. It makes me understand about static use in OOP.
@GurdeepSingh-gr7fb
@GurdeepSingh-gr7fb 5 жыл бұрын
Sir Your tutorials are great. The only missing thing is the Section end Challenge Projects.
@factworld4375
@factworld4375 5 жыл бұрын
You will get those if you are watching this from the pluralsight :)
@GurdeepSingh-gr7fb
@GurdeepSingh-gr7fb 5 жыл бұрын
@@factworld4375 it must be paid course?
@factworld4375
@factworld4375 5 жыл бұрын
@@GurdeepSingh-gr7fb Definitely
@rafiksiddique3826
@rafiksiddique3826 2 жыл бұрын
Thanks a lot sir
@rajeshkumarmajhi2845
@rajeshkumarmajhi2845 6 жыл бұрын
Next vedio upload sir.... Please Seeing Ur vedios getting excitement to learn more......
@javierrotjes6013
@javierrotjes6013 4 жыл бұрын
6:23 you will need heavenly powers to change the value of Pi
@anoop_rana
@anoop_rana 4 жыл бұрын
lol
@OfficialUPSCAspirant
@OfficialUPSCAspirant 3 жыл бұрын
HAHA
@saivishnu725
@saivishnu725 4 жыл бұрын
Perfect , beautifully explained
@SyedHaroon786
@SyedHaroon786 4 жыл бұрын
Thanks for the video, nicely explained.
@SeraphimTech_io
@SeraphimTech_io 6 жыл бұрын
Hi Bro you arent for a long time I hope u are healthy when u start again?
@furkanvatandas4819
@furkanvatandas4819 6 жыл бұрын
Nice tutorial, Can you make videos for intermediate?
@milvanfoi7905
@milvanfoi7905 5 жыл бұрын
THANK YOU YOU ARE THE BEST
@sagarkumar-ns3gr
@sagarkumar-ns3gr 4 жыл бұрын
hello sir, can we also use final keyword except const to prevent the changes in the value ?
@aravindc6946
@aravindc6946 4 жыл бұрын
By using final the value can change during run time but by using const the value cannot be changed during both runtime and compile time.
@hilmy7822
@hilmy7822 4 жыл бұрын
thanks bro, it's really helpfull
@lewisburgos9799
@lewisburgos9799 5 жыл бұрын
excellent, thanks you
@flutter4525
@flutter4525 2 жыл бұрын
what is class object?
@rajeshkumarmajhi2845
@rajeshkumarmajhi2845 6 жыл бұрын
I'm waiting for next vedio sir....
@christiananaks16
@christiananaks16 Жыл бұрын
What IDE are u using?
@tanaysingh9124
@tanaysingh9124 4 жыл бұрын
what if we use final instead of static? class Circle { static final double pi=3.14; static void calculateArea() { print("area is calculated already"); } }
@attimeequalszero6750
@attimeequalszero6750 4 жыл бұрын
Hi, There are differences in the way final and const work. A variable declared as const should have a value that is known at compile time. While a variable declared as final can have its value initialized at run time. Both const and final variables cannot be modified once initialized. There is a deeper difference though, when it comes to objects and collections. Also static keyword is used to make the member(variables and methods) belong to a class rather than a object. Meaning that only once static member is created and shared by all the objects of that class. When new objects are created, no new copy of static member will be made. Read through these articles once : news.dartlang.org/2012/06/const-static-final-oh-my.html stackoverflow.com/questions/50431055/what-is-the-difference-between-the-const-and-final-keywords-in-dart Hope this helps. Stay safe.
@Sagliyu
@Sagliyu 6 жыл бұрын
Thanks
@krishnakumarramachandran5888
@krishnakumarramachandran5888 5 жыл бұрын
Perfect Sir 😊👌👍
@smartherd
@smartherd 5 жыл бұрын
Thanks
@creative-commons-videos
@creative-commons-videos 5 жыл бұрын
so whats diff between static and final ???
@juanmanuellopez4511
@juanmanuellopez4511 4 жыл бұрын
I have a question, how does use non static global variable inside static method?
@attimeequalszero6750
@attimeequalszero6750 4 жыл бұрын
Hi, In order to access a non-static variable(instance variable), you will have to create an instance of the class in the static method. For example : void main() { UnPredictableCode.accessRandomText(); } class UnPredictableCode { String randomText = "Stay safe"; static void accessRandomText() { UnPredictableCode code = new UnPredictableCode(); print(code.randomText); } } What is your purpose for trying to use non-static global variable (instance variable) in static method ? Hope this helps. Stay safe.
@AshishGautam-sy3vm
@AshishGautam-sy3vm 6 жыл бұрын
please teach how to build apps in flutter..
@JDArtagnanAO
@JDArtagnanAO 5 жыл бұрын
Double and Int really use 8 bytes 64 bits
@learnwithshash1475
@learnwithshash1475 2 жыл бұрын
same thing....incomplete tutorial....you are assuming that we already know java.
@MinhThu-nj7zi
@MinhThu-nj7zi 5 жыл бұрын
wait double is 4 bytes??
@warhead3030
@warhead3030 5 жыл бұрын
its only an example
@thecollective2404
@thecollective2404 3 жыл бұрын
"On this earth" which means you believe in parallel universe ✨
@mashakozlova9425
@mashakozlova9425 4 жыл бұрын
"static" man "static" not "startic" your accent is killing me.
白天使选错惹黑天使生气。#天使 #小丑女
00:31
天使夫妇
Рет қаралды 15 МЛН
If Barbie came to life! 💝
00:37
Meow-some! Reacts
Рет қаралды 78 МЛН
SPONGEBOB POWER-UPS IN BRAWL STARS!!!
08:35
Brawl Stars
Рет қаралды 22 МЛН