dy property

double get dy

The distance fraction in the vertical direction.

A value of 0.0 corresponds to the topmost edge. A value of 1.0 corresponds to the bottommost edge. Values are not limited to that range; negative values represent positions above the top, and values greater than 1.0 represent positions below the bottom.

Implementation

double get dy => (y + 1.0) / 2.0;