item property

PostItem? get item

Returns the currently displayed item,

Implementation

PostItem? get item {
  final Post? current = post;
  if (current == null) {
    return null;
  }

  return current.items.elementAtOrNull(current.index.value);
}