...

/

Extension Properties

Extension Properties

This lesson explains how to use extension properties. You will also learn that extension methods are static.

Extension Property

Dart provides support for Properties in addition to the methods and operators which we explored in the last few lessons.

In this lesson, we will learn to declare the extension property. We will use the same price list from the previous lessons’ examples.

Example

In this extension, we will add a property to return the total number of printed price labels that are needed for ...