Document class

A document in the JSPaste API.

You can publish a document with JSPasteClient.publishDocument.

Constructors

Document(String text, {String? password, DateTime? expiresAt, String? secret})

Properties

expiresAt DateTime?
The document expiration date.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
http ↔ Client
HTTP client used to make requests to the API.
getter/setter pair
key String?
Get the document ID.
getter/setter pair
password String?
The document password.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secret String?
The document secret.
getter/setter pair
text String
The document text.
getter/setter pair
url String?
The document url.
no setter

Methods

isPublished({bool offlineMode = false, bool forceOnlineCheck = false, dynamic nullify = true}) Future<bool>
Check if the document is published.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
unpublish({bool nullify = false}) Future<void>
Unpublish the document.
update(String text, {bool nullify = true}) Future<void>
Update the document.

Operators

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