O'Reilly logo

Web Programming with Dart by Patricia Juberias, Moises Belchin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 20

image

Implementing Generics and Typedefs

As we’ve mentioned several times throughout this book, Dart is an optional-typed language, which means that you are not required to specify variables’ data types in your applications. However, data typing can be very useful for self-documenting your source code and can make your life easier if you have to maintain the application.

If you indicate data types in your applications, something amazing will happen—all the Dart tools will begin to work for you and will provide various alerts while you work. These alerts might indicate typing errors between the parameters of a function or between a function ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required