GistsService class Null safety

The GistsService handles communication with gist methods of the GitHub API.

API docs: https://developer.github.com/v3/gists/

Inheritance

Constructors

GistsService(GitHub github)

Properties

github GitHub
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

createComment(String gistId, CreateGistComment request) Future<GistComment>
Creates a comment for a gist. [...]
createGist(Map<String, String> files, {String? description, bool public = false}) Future<Gist>
Creates a Gist [...]
deleteGist(String id) Future<bool>
Deletes the specified Gist. [...]
editGist(String id, {String? description, Map<String, String>? files}) Future<Gist>
Edits a Gist. [...]
forkGist(String id) Future<Gist>
Forks the specified Gist. [...]
getGist(String id) Future<Gist>
Fetches a Gist by the specified id. [...]
isGistStarred(String id) Future<bool>
Checks if the specified Gist is starred. [...]
listComments(String gistId) Stream<GistComment>
Lists all comments for a gist. [...]
listCurrentUserGists() Stream<Gist>
Fetches the gists for the currently authenticated user. If the user is not authenticated, this returns all public gists. [...]
listCurrentUserPublicGists() Stream<Gist>
Fetches the currently authenticated user's public gists. [...]
listCurrentUserStarredGists() Stream<Gist>
Fetches the currently authenticated user's starred gists. [...]
listUserGists(String username) Stream<Gist>
lists gists for a user. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
starGist(String id) Future<bool>
Star the specified Gist. [...]
toString() String
A string representation of this object. [...]
inherited
unstarGist(String id) Future<bool>
Unstar the specified Gist. [...]

Operators

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