PostView class

Annotations
  • @freezed

Constructors

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

Properties

community CommunitySafe
no setterinherited
copyWith → $PostViewCopyWith<PostView>
Create a copy of PostView with the given fields replaced by the non-null parameter values.
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 String
no setterinherited
unreadComments int
no setterinherited

Methods

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

Operators

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