Static Variable and Static Method in Dart | Dart Tutorial for Flutter | #54 | Hindi

Опубликовано: 29 Сентябрь 2024
на канале: Ahirlog
7,605
142

In the Dart programming language, a static variable (also called a class variable) is a variable that is associated with a class, rather than with a specific instance of the class. A static method is a method that is associated with a class, rather than with a specific instance of the class.

Static variables and static methods are accessed using the className.variableName or className.methodName syntax. They can be used to store and manipulate data that is shared among all instances of a class, or to define utility functions that do not depend on the state of a specific object.

My YouTube Gear:
Boya BYM1(Mic): https://amzn.to/3bvm69j
Redmi Note 7 Pro(Mic & Camera): https://amzn.to/3uRkVsb
MSI Motherboard: https://amzn.to/3fiQHYO
Intel i3 Processor: https://amzn.to/3w8TWbQ
Mouse: https://amzn.to/3yb8PMP
Keyboard: https://amzn.to/3bvmtkd
Wifi Adaptor: https://amzn.to/3fiQYuO
SSD: https://amzn.to/3w2w2Pa
Speakers: https://amzn.to/3w6pKhv

----------------------------------
Method Overriding in Dart | Dart Flutter Programming Tutorial | #53
   • Method Overriding in Dart | Dart Flut...  

Inheritance in Dart | Dart Programming for Flutter | #52
   • Inheritance in Dart | Dart Programmin...  

Getter and Setter in Dart | Dart Programming for Flutter | #51
   • Getter and Setter in Dart | Dart Prog...  

Redirecting Constructor in Dart | Dart for Flutter | #50
   • Redirecting Constructor in Dart | Dar...  

Constant Constructor in Dart | Dart for Flutter | #49
   • Constant Constructor in Dart | Dart f...  

Constructor in Dart | Default Constructor, Named Constructor and Parameterised Constructor | #48
   • Constructor in Dart | Default Constru...  
----------------------------------

Instagram:   / ahirlog  

Facebook:   / ahirlog  

Twitter:   / ahirlog  

YouTube:    / ahirlog  

#ahirlog #flutter #dart

Last Summer by Ikson:   / ikson​  
Music promoted by Audio Library    • Last Summer – Ikson (No Copyright Music)