Foreword |
|
ix | |
Preface |
|
xi | |
|
|
1 | (10) |
|
|
1 | (2) |
|
A Quick Look at the Dart Language |
|
|
3 | (1) |
|
|
3 | (2) |
|
|
5 | (6) |
|
Step 1 Download and Install the Software |
|
|
5 | (1) |
|
|
5 | (1) |
|
Step 3 Create and Run an App |
|
|
6 | (2) |
|
Step 4 Open and Run a Sample |
|
|
8 | (1) |
|
|
9 | (2) |
|
2 A Tour of the Dart Language |
|
|
11 | (44) |
|
|
11 | (1) |
|
|
12 | (1) |
|
|
13 | (1) |
|
|
13 | (2) |
|
|
14 | (1) |
|
|
14 | (1) |
|
|
14 | (1) |
|
|
15 | (5) |
|
|
15 | (2) |
|
|
17 | (1) |
|
|
18 | (1) |
|
|
19 | (1) |
|
|
19 | (1) |
|
|
20 | (3) |
|
|
21 | (1) |
|
Functions as First-Class Objects |
|
|
22 | (1) |
|
|
23 | (1) |
|
|
23 | (1) |
|
|
23 | (6) |
|
|
24 | (2) |
|
Equality and Relational Operators |
|
|
26 | (1) |
|
|
26 | (1) |
|
|
27 | (1) |
|
|
27 | (1) |
|
Bitwise and Shift Operators |
|
|
28 | (1) |
|
|
28 | (1) |
|
|
29 | (4) |
|
|
29 | (1) |
|
|
29 | (1) |
|
|
30 | (1) |
|
|
30 | (1) |
|
|
31 | (1) |
|
|
32 | (1) |
|
|
33 | (1) |
|
|
33 | (1) |
|
|
33 | (1) |
|
|
34 | (1) |
|
|
34 | (11) |
|
|
35 | (1) |
|
|
36 | (4) |
|
|
40 | (2) |
|
|
42 | (1) |
|
|
43 | (1) |
|
|
43 | (1) |
|
Class Variables and Methods |
|
|
44 | (1) |
|
|
45 | (2) |
|
|
45 | (1) |
|
Using Collection Literals |
|
|
46 | (1) |
|
|
46 | (1) |
|
Generic Collections and the Types they Contain |
|
|
47 | (1) |
|
|
47 | (3) |
|
|
47 | (1) |
|
|
48 | (2) |
|
|
50 | (1) |
|
|
50 | (1) |
|
|
51 | (2) |
|
|
52 | (1) |
|
|
52 | (1) |
|
|
52 | (1) |
|
|
53 | (2) |
|
3 A Tour of the Dart Libraries |
|
|
55 | (40) |
|
dart:core - Numbers, Collections, Strings, and More |
|
|
55 | (14) |
|
|
55 | (1) |
|
Strings and Regular Expressions |
|
|
56 | (3) |
|
|
59 | (5) |
|
|
64 | (1) |
|
|
65 | (2) |
|
|
67 | (2) |
|
|
69 | (1) |
|
dart:math - Math and Random |
|
|
69 | (2) |
|
|
69 | (1) |
|
|
70 | (1) |
|
|
70 | (1) |
|
|
70 | (1) |
|
|
71 | (1) |
|
dart:html - Browser-Based Apps |
|
|
71 | (8) |
|
|
71 | (4) |
|
Using HTTP Resources with HttpRequest |
|
|
75 | (3) |
|
Sending and Receiving Real-Time Data with WebSockets |
|
|
78 | (1) |
|
dart:isolate - Concurrency with Isolates |
|
|
79 | (4) |
|
|
80 | (1) |
|
|
80 | (3) |
|
|
83 | (1) |
|
dart:io - I/O for Command-Line Apps |
|
|
83 | (6) |
|
|
84 | (3) |
|
|
87 | (2) |
|
dart:json - Encoding and Decoding Objects |
|
|
89 | (1) |
|
|
89 | (1) |
|
|
89 | (1) |
|
dart:uri - Manipulating URIs |
|
|
90 | (2) |
|
Encoding and Decoding Fully Qualified URIs |
|
|
90 | (1) |
|
Encoding and Decoding URI Components |
|
|
91 | (1) |
|
|
91 | (1) |
|
|
91 | (1) |
|
dart:utf - Strings and Unicode |
|
|
92 | (1) |
|
Decoding UTF-8 Characters |
|
|
92 | (1) |
|
Encoding Strings to UTF-8 Bytes |
|
|
92 | (1) |
|
|
93 | (1) |
|
dart:crypto - Hash Codes and More |
|
|
93 | (1) |
|
Generating Cryptographic Hashes |
|
|
93 | (1) |
|
Generating Message Authentication Codes |
|
|
94 | (1) |
|
Generating Base64 Strings |
|
|
94 | (1) |
|
|
94 | (1) |
|
|
95 | (18) |
|
pub: The Dart Package Manager |
|
|
95 | (2) |
|
|
95 | (1) |
|
|
95 | (2) |
|
Importing Libraries from Packages |
|
|
97 | (1) |
|
|
97 | (1) |
|
|
97 | (10) |
|
|
97 | |
|
|
93 | (1) |
|
|
93 | (6) |
|
|
99 | (4) |
|
|
103 | (2) |
|
|
105 | (1) |
|
|
106 | (1) |
|
|
106 | (1) |
|
Dartium: Chromium with the Dart VM |
|
|
107 | (3) |
|
Downloading and Installing the Browser |
|
|
107 | (1) |
|
|
108 | (1) |
|
|
109 | |
|
|
108 | (1) |
|
|
109 | (1) |
|
Launching from the Command Line |
|
|
109 | (1) |
|
dart2js: The Dart-to-JavaScript Compiler |
|
|
110 | (1) |
|
|
110 | (1) |
|
|
110 | (1) |
|
|
110 | (1) |
|
|
110 | (1) |
|
|
111 | (1) |
|
|
111 | (1) |
|
|
111 | (2) |
|
|
113 | |
|
|
113 | (1) |
|
|
114 | (1) |
|
|
115 | (1) |
|
|
115 | (5) |
|
|
116 | (1) |
|
|
117 | (1) |
|
|
118 | (1) |
|
Encoding and Decoding Messages |
|
|
119 | (1) |
|
Communicating with WebSockets |
|
|
119 | (1) |
|
|
120 | (3) |
|
|
120 | (1) |
|
Managing WebSocket Connections |
|
|
121 | (1) |
|
Logging Messages to a File |
|
|
122 | (1) |
|
|
123 | |