FanPiece constructor

FanPiece({
  1. required double angleStart,
  2. required double swipe,
  3. required double radiusEnd,
  4. required double radiusStart,
  5. required Color color,
  6. required Offset center,
})

Fan Piece is the smallest unit on the color picker wheel, it looks like a piece of a donut Fan piece is used by FanPieceWidget to hold its data. FanPiece model is responsible to convert spherical coordinates to cartesian coordinates

Implementation

FanPiece({
  required this.angleStart,
  required this.swipe,
  required this.radiusEnd,
  required this.radiusStart,
  required this.color,
  required this.center,
});