- Dart Cookbook
- Ivo Balbaert
- 95字
- 2021-08-05 17:42:49
Introduction
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.