Learn Dart the Hard Way

Retired

This book is no longer available for sale.

Learn Dart the Hard Way

The fundamental programming language to build native iOS and Android mobile apps in Flutter

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

  • Share this book

  • Categories

    • iOS
    • Computers and Programming
    • Android
  • Installments completed

    1 / 3

  • Feedback

    Email the Author(s)

About the Author

Sanjib Sinha
Sanjib Sinha

A Freak, in an absurd journey that starts from nowhere, and ends up nowhere.

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

The Leanpub 60 Day 100% Happiness Guarantee

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

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $14 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. 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) and EPUB (for phones, tablets and Kindle). 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. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub