JSPasteClient class
The JSPaste client class. Create one to start interacting with the API!
Constructors
- JSPasteClient({String? url})
- Create a new JSPaste client.
Properties
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