stopCursorTimer method

void stopCursorTimer({
  1. bool resetCharTicks = true,
})

Implementation

void stopCursorTimer({bool resetCharTicks = true}) {
  _cursorTimer?.cancel();
  _cursorTimer = null;
  _targetCursorVisibility = false;
  _cursorBlinkOpacityController.value = 0.0;

  if (style.opacityAnimates) {
    _cursorBlinkOpacityController.stop();
    _cursorBlinkOpacityController.value = 0.0;
  }
}