Learn Dart the Hard Way
Learn Dart the Hard Way

Retired

This book is no longer available for sale.

Learn Dart the Hard Way

This book is 100% complete

Completed on 2019-09-24

About the Book

Dart is familiar to many existing developers, thanks to the object orientation and syntax familiarity with other object oriented programming languages, such as Python, C++, C#, or Java. If you are a seasoned programmer, you can be productive with Dart in just a few days.

A Few Words About DART IDE

1. Why Dart Language?

2. Learning Dart from Scratch: Variables, Operators and Conditionals, Control Flow

Variables Store References

Built in Types in Dart

Suppose, You don’t like Variables

More about built-in types

Play with Number and Double

Understanding Strings

To be True or to be False

Introduction to Collections: Arrays are Lists in Dart

Get, Set and Go

Operators are Useful

Equality and relational operators

Type test operators

Assignment operators

Summery of the First Part

2.1. Control the flow of your code

If and Else

Conditional Expression

2.2 Looking at Looping

For Loops

While and Do-While

Patterns in Looping

For Loop Labels

Continue with For Loop

Decision making with Switch and case

3. Functions and Objects

A Short Introduction to Function

A Short Introduction to Objects

3.1. Digging Deep into Object Oriented Programming

Why we need Constructors

How to implement Classes

How Functions or Methods Work

Lexical Scope in Function

A few words about Getter and Setter

Different types of Parameters

More about Constructors

4. Inheritance and Mixins in Dart

Mixins: Adding more Features to a Class

5. Abstract Class and Methods

6. Advantage of Interfaces

7. Static Variables and Methods

8. Anonymous Functions: Lambda, Higher Order Functions, and Lexical Closures

Lambda: The Anonymous Function

Exploring Higher Order Functions

Closure is a Special Function

9. Data Structures and Collections

Lists: Fixed Length and Growable

Set: An Unordered Collections of Unique Items

Maps: the Key, Value Pair

Queue is Open-Ended

10. Callable Classes

11. Exception Handling

12. Dart Packages and Libraries

13. What Next

About the Author

Sanjib Sinha
Sanjib Sinha

Author of six books; Sanjib Sinha has written Beginning Ethical Hacking with Python, Beginning Laravel (Two Editions), Beginning Ethical Hacking with Kali Linux, Bug Bounty Hunting for Web Security, and A Quick Start Guide to Dart Programming for Apress/Springer. As a .NET developer, he won Microsoft's Community Contributor Award in 2011.

Table of Contents

  • About the Author
    • Acknowledgments
    • Who should read this book?
  • A Few Words About DART IDE
    • Why Dart Language?
    • Variables, Operators and Conditionals, Control Flow
    • Variables Store References
    • Suppose, you don’t like Variables
    • More about built-in types
    • Understanding Strings
    • Get, Set and Go
    • Equality and relational operators
    • Type Test Operators
    • Summary of the First Part
  • Flow Control and Looping
    • Looking at Looping
    • While and Do-While
    • Patterns in Looping
    • For Loop Labels
    • Continue with For Loop
    • Decision making with Switch and case
  • Functions and Objects
    • Functions
    • Digging Deep into Object-Oriented Programming
    • Why we need Constructors
    • How Functions or Methods Work
    • Lexical Scope in Function
    • A few words about Getter and Setter
    • Different types of Parameters
    • More about Constructors
  • Inheritance and Mixins in Dart
    • Mixins: Adding more Features to a Class
  • Entity-Relationships: Abstract Class, Interface and More
    • Identifying Relationships between Entities
    • Using Abstract Classes
    • Advantage of Interfaces
    • Static Variables and Methods
  • Anonymous Functions
    • Lambda
    • Exploring Higher-Order Functions
    • The ‘Closure’ is a Special Function
  • Data Structures and Collections
    • Lists: Fixed Length and Growable
    • Set: An Unordered Collections of Unique Items
    • Maps: the Key, Value Pair
    • Queue is Open-Ended
  • Callable Classes, Exception Handling, Future, Async, Await
    • Exception Handling
    • Future, Async, Await and Asynchronous Programming
  • Dart Packages and Libraries
    • An Introduction to Dart back end server and web using libraries
    • What’s Next

Authors have earned$8,179,639writing, publishing and selling on Leanpub,
earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.

Learn more about writing on Leanpub

The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms

Free Updates. Free App. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets), MOBI (for Kindle) and in the free Leanpub App (for Mac, Windows, iOS and Android). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub