CursorCont constructor

CursorCont({
  1. required ValueNotifier<bool> show,
  2. required CursorStyle style,
  3. required TickerProvider tickerProvider,
})

Implementation

CursorCont({
  required this.show,
  required CursorStyle style,
  required TickerProvider tickerProvider,
})  : _style = style,
      blink = ValueNotifier(false),
      color = ValueNotifier(style.color) {
  _blinkOpacityController =
      AnimationController(vsync: tickerProvider, duration: _fadeDuration);
  _blinkOpacityController.addListener(_onColorTick);
}