scrollToMessage method

void scrollToMessage(
  1. String id, {
  2. Duration? duration,
})

Scroll to the message with the specified id.

Implementation

void scrollToMessage(String id, {Duration? duration}) =>
    _scrollController.scrollToIndex(
      _autoScrollIndexById[id]!,
      duration: duration ?? scrollAnimationDuration,
    );