Book Image

DART Essentials

Book Image

DART Essentials

Overview of this book

Table of Contents (16 chapters)
Dart Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 2. Practical Dart

This chapter will focus on the most common features of Dart that you'll use every day for your next Dart project. In this chapter, we'll look at:

  • Manipulating DOM and HTML elements

  • Future-Based API, Dart's built-in library for working with asynchronous calls

  • Creating Ajax requests in Dart

  • How packages work in Dart

  • Calling JavaScript from Dart

  • Calling Dart from JavaScript

The whole chapter is intended to be very practical. We'll create a small app that reads a JSON dictionary and lets you search among all the terms in it. To make it more complicated, we'll implement a so-called fuzzy search algorithm, which doesn't search exact matches but the same order of characters instead.