SegmentPosition.fourteenL constructor

SegmentPosition.fourteenL(
  1. Size size,
  2. double padding
)

Creates SegmentPosition for bottom center vertical segment in 14-segment display.

Implementation

SegmentPosition.fourteenL(Size size, double padding)
    : this(
        size.width + (size.height / 2.0 - size.width / 2.0) + padding,
        2 * size.width + size.height,
      );