SegmentPosition.fourteenJ constructor

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

Creates SegmentPosition for top right diagonal segment in 14-segment display.

Implementation

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