VoteDataAccessObject class final
A data access object for votes.
- Inheritance
-
- Object
- DataAccessObject<
Vote> - VoteDataAccessObject
- Annotations
-
- @immutable
Constructors
- VoteDataAccessObject.new(E621Client client)
-
const
Properties
- client → E621Client
-
The client to use for requests.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- host → String
-
The base URL of the e621 API.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
fromJson(
Map< String, dynamic> json) → Vote - Converts a map to a resource.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
vote(
{required int postId, required int score, bool? noUnvote = false}) → Future< Vote> - Vote on a post.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited