Comment class
Constructors
-
Comment.from({required int id, required String title, required String message, required String markdownMessage, required Topic? topic, required User user, required int likes, required int votes, required List<
Comment> comments, required bool isUserUpvoted, required bool isUserDownvoted, required bool isAdmin, required bool deleted}) - Returns the new instance of Comment based on arguments.
Properties
-
comments
→ List<
Comment> -
The comments
final
- deleted → bool
-
The flag that represents this comment is deleted or not
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → int
-
The id
final
- isAdmin → bool
-
The flag that represents this user is admin or not
final
- isUserDownvoted → bool
-
The flag that represents user is downvoted or not
final
- isUserUpvoted → bool
-
The flag that represents user is upvoted or not
final
- likes → int
-
The number of likes
final
- markdownMessage → String
-
The markdown message
final
- message → String
-
The message
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
The title
final
- topic → Topic?
-
The topic
final
- user → User
-
The user
final
- votes → int
-
The number of votes
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override