Book Image

DART Cookbook

By : Ivo Balbaert
Book Image

DART Cookbook

By: Ivo Balbaert

Overview of this book

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

Chapter 4. Object Orientation

In this chapter, we will cover the following recipes:

  • Testing and converting types

  • Comparing two objects

  • Using a factory constructor

  • Building a singleton

  • Using reflection

  • Using mixins

  • Using annotations

  • Using the call method

  • Using noSuchMethod

  • Creating toJSON and fromJSON methods in your class

  • Creating common classes for client and server apps