ApiLauncher class Null safety

Api Service Singleton Class

Constructors

ApiLauncher()
Factory building the Singleton
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
isConnected bool
Boolean telling if the Installed flow instance is created
read / write
redditApi Reddit
Reddit object
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

createRedditFlow() Future<void>
Methode creating the Reddit object [...]
isFlowCreated() bool
Returning a boolean defining the state of the Reddit flow True if the user is connected and the flowInstance is created False either
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
searchSubs(String query) Future<List<Subreddit>>
Static Method Fetch Subs using the searchByName Method [...]
toString() String
A string representation of this object. [...]
inherited

Operators

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

Static Methods

cancelVote(Submission post) → dynamic
Static Method Canceling a Submission Vote
downvotePost(Submission downvotedPost) → dynamic
Static Method Downvoting a Submission Post
getFrontPagePosts(PostDataModel postsDataNotifier, bool getWholeNew) → dynamic
Static Method Fetching the Reddit front page posts [...]
getMe(UserDataModel userDataNotifier) → dynamic
Static Method getting the connected User [...]
getPrefs() Future<Map<String, dynamic>>
Static Method Fetchs every settings of the current user
getSubredditPosts(SubRedditModel subRedditDatas, bool getWholeNew) → dynamic
Static Method Fetch posts from a Subreddit [...]
getUserSubreddits(UserDataModel userDataNotifier) → dynamic
Static Method Fetched the Subreddits the user is subscribed to [...]
savePrefs(Map<String, dynamic> settingsMap) → dynamic
Static Method Send a PATCH request to the Reddit Api to update preferences
subscribeToSub(Subreddit targetedSub) → dynamic
Static Method Request the Reddit Api to subscribe to the Subreddit
unsubscribeToSub(Subreddit targetedSub) → dynamic
Static Method Request the Reddit Api to unsubscribe to the Subreddit
upvotePost(Submission upvotedPost) → dynamic
Static Method Upvoting a Submission Post