CursorController constructor
CursorController({
- required ValueNotifier<
bool> showCursor, - required CursorStyle style,
- 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);
}