Dart
dart
#dart
Table of Contents
About
1
Chapter 1: Getting started with dart
2
Remarks
2
Links
2
Documentation
2
FAQ
3
Versions
3
Examples
5
Installation or Setup
5
Automated installation and updates
5
Manual install
5
Hello, World!
5
Http Request
6
Html
6
Dart
6
Example
6
Getters and Setters
6
Chapter 2: Asynchronous Programming
8
Examples
8
Returning a Future using a Completer
8
Async and Await
8
Converting callbacks to Futures
9
Chapter 3: Classes
10
Examples
10
Creating a class
10
Members
10
Constructors
11
Chapter 4: Collections
13
Examples
13
Creating a new List
13
Creating a new Set
13
Creating a new Map
13
Map each element in the collection.
14
Filter a list
14
Chapter 5: Comments
16
Syntax
16
Remarks
16
Examples
16
End of Line Comment
16
Multi-Line Comment
16
Documentation using Dartdoc
16
Chapter 6: Control Flow
18
Examples
18
If Else
18
While Loop
18
For Loop
19
Switch Case
19
Chapter 7: Converting Data
21
Examples
21
JSON
21
Chapter 8: Dart-JavaScript interoperability
22
Introduction
22
Examples
22
Calling a global function
22
Wrapping JavaScript classes/namespaces
22
Passing object literals
23
Chapter 9: Date and time
24
Examples
24
Basic usage of DateTime
24
Chapter 10: Enums
25
Examples
25
Basic usage
25
Chapter 11: Exceptions
26
Remarks
26
Examples
26
Custom exception
26
Chapter 12: Functions
27
Remarks
27
Examples
27
Functions with named parameters
27
Function scoping
27
Chapter 13: Libraries
29
Remarks
29
Examples
29
Using libraries
29
Libraries and visibility
29
Specifying a library prefix
30
Importing only part of a library
30
Lazily loading a library
30
Chapter 14: List Filters
32
Introduction
32
Examples
32
Filtering a list of integers
32
Chapter 15: Pub
33
Remarks
33
Examples
33
pub build
33
pub serve
33
Chapter 16: Regular Expressions
34
Syntax
34
Parameters
34
Remarks
34
Examples
34
Create and use a Regular Expression
34
Chapter 17: Strings
35
Examples
35
Concatenation and interpolation
35
Valid strings
35
Building from parts
35
Credits
37
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.