position property

double get position

Returns the fractional position (0.0 = left, 0.5 = center, 1.0 = right).

Implementation

double get position => switch (this) {
  HorizontalAlign.left => 0.0,
  HorizontalAlign.center => 0.5,
  HorizontalAlign.right => 1.0,
};