BasicAnchoredHoleHelper constructor

BasicAnchoredHoleHelper({
  1. Key? key,
  2. required Offset? currentPos,
  3. required double padding,
  4. required Color? bgColor,
  5. required Size? anchorSize,
  6. required Listenable listenable,
  7. Function? onTap,
})

Implementation

BasicAnchoredHoleHelper({
  Key? key,
  required this.currentPos,
  required this.padding,
  required this.bgColor,
  required this.anchorSize,
  required Listenable listenable,
  this.onTap,
})  : _stroke1Animation = CurvedAnimation(
        parent: listenable as Animation<double>,
        curve: Curves.ease,
      ),
      _stroke2Animation = CurvedAnimation(
        parent: listenable,
        curve: const Interval(0, .8, curve: Curves.ease),
      ),
      super(key: key, listenable: listenable);