-
Notifications
You must be signed in to change notification settings - Fork 1
Variables
AlperZM edited this page Oct 13, 2022
·
1 revision
- How to declare a variable
- var
- How to declare a variable
"var" : general type decleration variable (int, String, List...)
- "String" : use for a string variable.
- int : use for an integer variables.
- double : use for a floating number.
- num : can use both int and double.
- List : use for arrays.
- iMPORTANT**
Also `var name = "Dart"` is equal to `String name = 'Dart'`
source: flutter.dev