Book Image

DART Cookbook

By : Ivo Balbaert
Book Image

DART Cookbook

By: Ivo Balbaert

Overview of this book

Table of Contents (18 chapters)
Dart Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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.