JSPasteClient class

The JSPaste client class. Create one to start interacting with the API!

Constructors

JSPasteClient({String? url})
Create a new JSPaste client.

Properties

hashCode int
The hash code for this object.
no setterinherited
http ↔ Client
HTTP client used to make requests to the API.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
The API base url.
getter/setter pair

Methods

documentExists(String key) Future<bool>
Check if a document exists by key by pinging the API.
getDocument(String key, {String? password}) Future<Document>
Get a Document from the JSPaste API.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
publishDocument(Document document, {int? keyLength}) Future<Document>
Publish a Document to the JSPaste API.
toString() String
A string representation of this object.
inherited

Operators

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