PostView class

Annotations
  • @freezed

Constructors

PostView({required Post post, required PersonSafe creator, required CommunitySafe community, required bool creatorBannedFromCommunity, required PostAggregates counts, required bool subscribed, required bool saved, required bool read, required bool creatorBlocked, VoteType? myVote, required String instanceHost})
const
factory
PostView.fromJson(Map<String, dynamic> json)
factory

Properties

community CommunitySafe
no setterinherited
copyWith → $PostViewCopyWith<PostView>
no setterinherited
counts PostAggregates
no setterinherited
creator PersonSafe
no setterinherited
creatorBannedFromCommunity bool
no setterinherited
creatorBlocked bool
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
instanceHost String
no setterinherited
myVote VoteType?
no setterinherited
post Post
no setterinherited
read bool
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
saved bool
no setterinherited
subscribed bool
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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