Skip to main content

Post class

This class creates a Post model.

Annotations

: - @HiveType(typeId: 6)

Constructors

[Post][]

:

[Post.fromJson][([[Map[<[String], dynamic>]] json])] : Creating a new Post instance from a map structure.

Properties

[base64String] [↔ String?] : Base64 encoded string of an image attached to the post. ::: features getter/setter pair :::

[comments] [↔ List[<[Comments]>]?] : List of comments on the post. ::: features getter/setter pair :::

[createdAt] [↔ DateTime?] : Creation timestamp of the post. ::: features getter/setter pair :::

[creator] [↔ User?] : User who created the post. ::: features getter/setter pair :::

[description] [↔ String?] : Description of the post. ::: features getter/setter pair :::

[hashCode] [→ int] : The hash code for this object. ::: features no setterinherited :::

[imageUrl] [↔ String?] : URL of the image attached to the post. ::: features getter/setter pair :::

[likedBy] [↔ List[<[LikedBy]>]?] : List of users who liked the post. ::: features getter/setter pair :::

[organization] [↔ OrgInfo?] : Organization associated with the post. ::: features getter/setter pair :::

[runtimeType] [→ Type] : A representation of the runtime type of the object. ::: features no setterinherited :::

[sId] [↔ String] : unique identifier for post. ::: features getter/setter pair :::

[videoUrl] [↔ String?] : URL of a video attached to the post. ::: features getter/setter pair :::

Methods

[getPostCreatedDuration][ [→ String] ] : this is to get duration of post.

[noSuchMethod][([[Invocation] invocation]) → dynamic ] : Invoked when a nonexistent method or property is accessed. ::: features inherited :::

[toString][ [→ String] ] : A string representation of this object. ::: features inherited :::

Operators

[operator ==][([[Object] other]) [→ bool] ] : The equality operator. ::: features inherited :::

  1. talawa
  2. post_model
  3. Post class
post_model library