WikiPageRef class
A lazily initialized object which represents a subreddit's wiki page. Can be promoted to a populated WikiPage.
- Inheritance
-
- Object
- RedditBase
- WikiPageRef
- Implementers
Constructors
- WikiPageRef(Reddit reddit, SubredditRef subreddit, String name, {String? revision})
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
-
infoParams
→ Map<
String, String> ? -
no setterinherited
- infoPath → String
-
The base request format for the current object.
no setteroverride
- mod → WikiPageModeration
-
A helper object which allows for performing moderator actions on
this wiki page.
no setter
- name → String
-
The name of the wiki page.
final
- reddit → Reddit
-
The current Reddit instance.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
edit(
String content, {String? reason}) → Future< void> - Edits the content of the current page.
-
fetch(
) → Future< WikiPage> -
Requests the data associated with the current object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
populate(
) → Future< WikiPage> -
Promote this WikiPageRef into a populated
WikiPage
. -
revision(
String revision) → WikiPageRef - Create a WikiPageRef which represents the current wiki page at the provided revision.
-
revisions(
) → Stream< WikiEdit> -
A Stream of
WikiEdit
objects, which represent revisions made to this wiki page. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object a) → bool -
The equality operator.
override