scrollToCaret method

void scrollToCaret()

Implementation

void scrollToCaret() {
  SchedulerBinding.instance!.addPostFrameCallback((Duration _) {
    final RevealedOffset targetOffset = _getOffsetToRevealCaret(_currentCaretRect!);
    _scrollable.position!.animateTo(targetOffset.offset, duration: _caretAnimationDuration, curve: _caretAnimationCurve);
  });
}