Post class

Single entity to display in a PlayerView.

Implemented types

Constructors

Post({required String id, ChatItem? item, List<PostItem> items = const [], int initial = 0, User? author, ChatMessageText? description, PreciseDateTime? postedAt})
Post.fromMediaItem(MediaItem item, {int initial = 0})
Constructs a Post from the provided MediaItem.
factory

Properties

author User?
User who is an author of this Post, if any.
final
description ChatMessageText?
Description of this Post, if any.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
horizontal → Rx<PageController>
PageController for controlling the horizontal switching of items,
final
id String
ID of this Post.
final
index → RxInt
Current index of items in horizontal.
final
item ChatItem?
ChatItem representing this Post.
final
items → RxList<PostItem>
PostItems of this Post.
final
postedAt PreciseDateTime?
PreciseDateTime this Post was posted at.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compareTo(Post other) int
Compares this object to another object.
override
dispose() → void
Disposes this Post.
init() → void
Initializes this Post.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reattach() → void
Resets the current horizontal.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override