更新时间:2021-06-24 13:08:49
coverpage
Title Page
Copyright and Credits
Flutter for Beginners
Dedication
About Packt
Why subscribe?
Packt.com
Contributors
About the author
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Conventions used
Get in touch
Reviews
Section 1: Introduction to Dart
An Introduction to Dart
Getting started with Dart
The evolution of Dart
How Dart works
Dart VM and JavaScript compilation
Hands-on Dart
DartPad
Dart development tools
Hello world
Understanding why Flutter uses Dart
Adding productivity
Compiling Flutter apps and hot reload
Easy learning
Maturity
Introducing the structure of the Dart language
Dart operators
Arithmetic operators
Increment and decrement operators
Equality and relational operators
Type checking and casting
Logical operators
Bits manipulation
Null-safe and null-aware operators
Dart types and variables
final and const
Built-in types
Numbers
BigInt
Booleans
Collections
Strings
String interpolation
Literals
Type inference – bringing dynamism to the show
Control flows and looping
Functions
Function parameters
Data structures collections and generics
Generics
When and why to use generics
Generics and Dart literals
Introduction to OOP in Dart
Dart OOP features
Objects and classes
Encapsulation
Inheritance and composition
Abstraction
Polymorphism
Summary
Further reading
Intermediate Dart Programming
Dart classes and constructors
The enum type
The cascade notation
Constructors
Named constructors
Factory constructors
Field accessors – getters and setters
Static fields and methods
Class inheritance
The toString() method
Interfaces abstract classes and mixins
Abstract classes
Interfaces
Mixins – adding behavior to a class
Callable classes top-level functions and variables
Callable classes
Top-level functions and variables
Understanding Dart libraries and packages
Importing and using a library
Importing show and hide
Importing prefixes to libraries
Importing path variants
Creating Dart libraries
Library member privacy
The library definition
A single-file library
Splitting libraries into multiple files