This chapter is about working with the different data types Dart has to offer. The basic data types available are var
(stores any object); num
(stores any number type); int
, double
, String
, bool
, List
(arrays); and Map
(associative arrays). All of these data types are declared in the dart:core
library. We will talk about strings, random numbers, complex numbers, dates and times, enums, and lists. We will cover a lot of tricks to help you out in specific circumstances. To get a quick overview of all the data types in Dart, refer to https://www.dartlang.org/docs/dart-up-and-running/contents/ch02.html#built-in-types.
DART Cookbook
By :
DART Cookbook
By:
Overview of this book
Table of Contents (18 chapters)
Dart Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Working with Dart Tools
Structuring, Testing, and Deploying an Application
Working with Data Types
Object Orientation
Handling Web Applications
Working with Files and Streams
Working with Web Servers
Working with Futures, Tasks, and Isolates
Working with Databases
Polymer Dart Recipes
Working with Angular Dart
Index
Customer Reviews