addItem

open fun addItem(@NonNull item: T)

Adds a new item depending on if we are currently going back or forward.

Parameters

item

The item to add.