position property

double get position

Returns the fractional position (0.0 = top, 0.5 = center, 1.0 = bottom).

Implementation

double get position => switch (this) {
  VerticalAlign.top => 0.0,
  VerticalAlign.center => 0.5,
  VerticalAlign.bottom => 1.0,
};