Update 101-variables.md

The statement was not true, as technically, global variables are also able to be declared
pull/7925/head
Michal Freriks 4 weeks ago committed by GitHub
parent 6469ef3078
commit 22e814311e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      src/data/roadmaps/flutter/content/100-dart-basics/101-variables.md

@ -4,6 +4,7 @@ In Flutter, variables are used to store values. There are two types of variables
- local variables: These are declared within a function and are only accessible within that function
- Instance variables: They are declared within a class and are accessible throughout the entire class.
- Global Variables: While not always recommended, Dart does allow variables to be declared globally (outside any class or function). These variables are accessible throughout the file in which they are declared and can also be accessed across libraries if properly imported.
Variables in Flutter can store values of different data types, such as numbers, strings, booleans, and more.

Loading…
Cancel
Save