Enumerated Types #1

This lesson introduces Enumerated Types in Dart.

Introduction

In Dart 1.8 release, enumerated Types (a.k.a. Enums) were added as an experimental feature.

Enums are like a class that represent a fixed number of constant values. For example, you have an app that fetches data from a remote server. Depending on the type of response received from the server, the app shows one of the following statuses:

  • done: The app received the response successfully.
  • waiting: The
...