Skip to content

Commit d3b0c32

Browse files
authored
fix: topic content
The statement was not true, as technically, global variables are also able to be declared
1 parent 37ca08f commit d3b0c32

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/data/roadmaps/flutter/content/100-dart-basics/101-variables.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ In Flutter, variables are used to store values. There are two types of variables
44

55
- local variables: These are declared within a function and are only accessible within that function
66
- Instance variables: They are declared within a class and are accessible throughout the entire class.
7+
- 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.
78

89
Variables in Flutter can store values of different data types, such as numbers, strings, booleans, and more.
910

0 commit comments

Comments
 (0)