direction property
Direction to look for sibling (previous or next)
Specifies whether to search for the sibling element that comes before (previous) or after (next) the current element in the DOM tree. This is useful when you need to extract data from adjacent elements that are related to the current context.
Implementation
final SiblingDirection? direction;