EtchPathAddArc.alignment constructor

EtchPathAddArc.alignment({
  1. required Offset topLeftAlignment,
  2. required Offset bottomRightAlignment,
  3. required double startAngle,
  4. required double sweepAngle,
})

Constructor for creating the arc which uses alignments to create the Rect Alignments here are with respect to the center (Center is (0,0))

Implementation

EtchPathAddArc.alignment({
  required Offset topLeftAlignment,
  required Offset bottomRightAlignment,
  required double startAngle,
  required double sweepAngle,
})  : _topLeftAlignment = topLeftAlignment,
      _bottomRightAlignment = bottomRightAlignment,
      _startAngle = startAngle,
      _sweepAngle = sweepAngle;