FanSliceWidget constructor

const FanSliceWidget({
  1. Key? key,
  2. required FanAnimationConfig fanAnimationConfig,
  3. required void callback(
    1. FanPiece
    ),
  4. required FanSlice fanSlice,
  5. required AnimationController controller,
  6. double pieceBorderSize = 0,
})

FanSliceWidget is responsible to render a slice of the wheel, just like a slice of birthday cake. It is responsible to hold/draw the FanPieces in the same group

Implementation

const FanSliceWidget({
  Key? key,
  required this.fanAnimationConfig,
  required this.callback,
  required this.fanSlice,
  required this.controller,
  this.pieceBorderSize = 0,
}) : super(key: key);