restoreAnchorAsync method

Future<void> restoreAnchorAsync(
  1. ListAnchor anchor
)

כמו restoreAnchor, ומשלים אחרי הפריסה שמיישמת את השחזור או ביטולו.

Implementation

Future<void> restoreAnchorAsync(ListAnchor anchor) {
  assert(isAttached, "ItemScrollController is not attached.");
  return _client!._jumpTo(
    index: anchor.index,
    alignment: 0,
    offset: -anchor.offsetInItem,
    includeLeadingPadding: false,
  );
}