CursorController constructor

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

Implementation

CursorController({
  required ValueNotifier<bool> showCursor,
  required CursorStyle style,
  required TickerProvider tickerProvider,
})  : showCursor = showCursor,
      _style = style,
      _cursorBlink = ValueNotifier(false),
      _cursorColor = ValueNotifier(style.color) {
  _cursorBlinkOpacityController =
      AnimationController(vsync: tickerProvider, duration: _fadeDuration);
  _cursorBlinkOpacityController.addListener(_onCursorColorTick);
}