Dart Cookbook
eBook - ePub

Dart Cookbook

Ivo Balbaert

Share book
  1. 346 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Dart Cookbook

Ivo Balbaert

Book details
Book preview
Table of contents
Citations

About This Book

Dart is a new open source programming language for the Web, developed at Google, with a steadily growing community. It is a single language for both client and server, and is apt for the complete range of devices on the Web, including phones, tablets, laptops, and servers. Stop solving new challenges with the same old tools—let Dart show you a new, simpler, and more unified way, which makes use of the same language for both client and server.

This book is a pragmatic guide that will increase your expertise in writing all kinds of applications, including web apps, scripts, and server-side apps. It provides rich insights on how to extend your Dart programming skills.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Dart Cookbook an online PDF/ePUB?
Yes, you can access Dart Cookbook by Ivo Balbaert in PDF and/or ePUB format, as well as other popular books in Ciencia de la computación & Desarrollo de aplicaciones. We have over one million books available in our catalogue for you to explore.

Information

Year
2014
ISBN
9781783989621

Dart Cookbook


Table of Contents

Dart Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Working with Dart Tools
Introduction
Configuring the Dart environment
Getting ready
How to do it...
How it works...
Setting up the checked and production modes
Getting ready
How to do it...
How it works...
There's more...
See also
Rapid Dart Editor troubleshooting
Getting ready
How to do it...
How it works...
There's more...
Hosting your own private pub mirror
How to do it...
How it works...
Using Sublime Text 2 as an IDE
Getting ready
How to do it...
How it works...
See also
Compiling your app to JavaScript
How to do it...
How it works...
There's more...
Producing more readable JavaScript code
Producing a single Dart file
See also
Debugging your app in JavaScript for Chrome
How to do it…
How it works...
There's more...
Debugging your app in JavaScript for Firefox
Using the command-line tools
How to do it...
See also
Solving problems when pub get fails
Getting ready
How to do it...
How it works...
There's more...
Shrinking the size of your app
How to do it...
How it works...
There's more...
More Information Section 1
See also
Making a system call
How to do it...
How it works...
Using snapshotting
How to do it...
How it works...
There's more...
See also
Getting information from the operating system
Getting ready
How to do it...
How it works...
There's more...
2. Structuring, Testing, and Deploying an Application
Introduction
Exiting from an app
How to do it...
How it works...
Parsing command-line arguments
How to do it...
How it works...
See also
Structuring an application
Getting ready
How to do it...
How it works...
There's more...
See also
Using a library from within your app
How to do it...
How it works...
There's more...
Microtesting your code with assert
How to do it...
How it works...
There's more...
Unit testing a Polymer web app
Getting ready
How to do it...
How it works...
See also
Adding logging to your app
Getting ready
How to do it...
How it works...
There's more...
Documenting your app
Getting ready
How to do it...
How it works...
There's more...
Profiling and benchmarking your app
Getting ready
How to do it...
How it works...
See also
Publishing and deploying your app
Getting ready
How to do it...
How it works...
There's more...
Using different settings in the checked and production modes
How to do it...
How it works...
3. Working with Data Types
Introduction
Concatenating strings
How to do it...
How it works...
There's more...
Using regular expressions
How to do it...
How it works...
There's more...
Strings and Unicode
How to do it...
How it works...
There's more...
Using complex numbers
How to do it...
How it works...
There's more...
Creating an enum
How to do it...
How it works...
There's more...
Flattening a list
How to do it...
How it works...
There's more...
Generating a random number within a range
How to do it...
How it works...
Getting a random element from a list
How to do it...
How it works...
See also
Working with dates and times
How to do it...
How it works...
There's more...
Improving performance in numerical computations
How to do it...
How it works...
There's more...
Working with JavaScript
Parsing numbers
See also
Using SIMD for enhanced performance
How to do it…
How it works...
See also
4. Object Orientation
Introduction
Testing and converting types
How to do it...
How it works...
There's more...
See also
Comparing two objects
How to do it...
How it works...
There's more...
See also
Using a factory constructor
How to do it...
How it works...
There's more...
Building a singleton
How to do it...
How it works...
Using reflection
Getting ready
How to do it...
How it works...
There's more...
See also
Using mixins
How to do it...
How it works...
There's more...
Using annotations
How to do it...
How it works...
There's more...
See also
Using the call method
How to do it...
How it works...
There's more...
Using noSuchMethod
How to do it...
How it works...
There's more...
See also
Making toJSON and fromJSON methods in your class
Getting ready
How to do it...
How it works...
There's more...
Creating common classes for client and server apps
How to do it...
How it works...
There's more…
See also
5. Handling Web Applications
Introduction
Responsive design
How to do it...
How it works...
See also
Sanitizing HTML
How to do it...
How it works...
Using a browser's local storage
How to do it...
How it works...
There's more...
See also
Using app...

Table of contents