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