From the course: Flutter Essential Training: Build for Multiple Platforms
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Overview of data types: Bool, lists, and maps - Flutter Tutorial
From the course: Flutter Essential Training: Build for Multiple Platforms
Overview of data types: Bool, lists, and maps
- [Instructor] Let's move on to more data types that we must learn about. The next one being booleans, which can hold only two values. One is true and another is false. Suppose you created a variable called isLocationEnabled to check if location services are enabled for a certain device or not. Now you want to check conditions such as if location services are enabled for a certain device, then only check the current GPS location. And when it is false, then you just print an error message like this. Also instead of explicitly mentioning equal, equal to true, you can omit it, and the compiler will understand that you want to check if this is true. For false, you can just add an exclamation mark at the beginning and you're done. Well, now let's move on to the next type, which is the list. It is similar to Arrays and some other programming languages. Here a list is basically just an ordered list of the same type or different…
Contents
-
-
-
Entry point to a Dart application1m 59s
-
(Locked)
Overview of data types: Numbers and strings5m 41s
-
(Locked)
Overview of data types: Bool, lists, and maps8m 11s
-
(Locked)
Difference between var and dynamic3m 2s
-
(Locked)
Functions in Dart7m 43s
-
(Locked)
Overview of classes and objects: Part 15m 13s
-
(Locked)
Overview of classes and objects: Part 28m 30s
-
-
-
-
-
-
-
-