Post class Null safety
Class defining a Subreddit post
Constructors
- Post()
- Base constructor constructing an empty Post Object
- Post.fromMap(Submission fetchedSubmission)
- Fill a Post object from a Submission's map
Properties
- body ↔ String
-
Post body
read / write
- createdUtc ↔ DateTime
-
DateTime when the post has been created
read / write
- downVotes ↔ int
-
Downvotes number on the post
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- itemId ↔ String
-
Post unique ID
read / write
- mediaUrl ↔ String
-
Media url
read / write
- myDownVotes ↔ int
-
Number of downvote of the user on the post
read / write
- myUpVotes ↔ int
-
Number of upvote of the user on the post
read / write
- rawData ↔ Submission?
-
Submission? object having the whole Sumbisson data
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- subIcon ↔ String
-
read / write
- subReddit ↔ String
-
Post subreddit's name
read / write
- title ↔ String
-
Post title
read / write
- typeMediaUrl ↔ String
-
Media type [...]
read / write
- upVotes ↔ int
-
Upvotes number on the post
read / write
- username ↔ String
-
Post author username
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toMap(
) → Map< String, dynamic> - Creates a Map<String, dynamic> from a Post object
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited