$Client class

Available Extensions

Constructors

$Client(Uri baseURL, {Map<String, String>? baseHeaders, String? userAgent, HttpClient? httpClient, CookieJar? cookieJar, List<DynamiteAuthentication> authentications = const []})
$Client.fromClient(DynamiteClient client)

Properties

authentications List<DynamiteAuthentication>
The available authentications for this client.
finalinherited
baseHeaders Map<String, String>?
The base headers added to each request.
finalinherited
baseURL Uri
The base server url used to build the request uri.
finalinherited
cookieJar CookieJar?
The optional cookie jar to persist the response cookies.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
httpClient HttpClient
The base http client.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createNote({String? category, String? title, String? content, int? modified, int? favorite}) Future<DynamiteResponse<Note, void>>
Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers. Throws a DynamiteApiException if the API call does not return an expected status code.
createNoteRaw({String? category, String? title, String? content, int? modified, int? favorite}) DynamiteRawResponse<Note, void>
This method and the response it returns is experimental. The API might change without a major version bump.
deleteNote({required int id}) Future<DynamiteResponse<String, void>>
Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers. Throws a DynamiteApiException if the API call does not return an expected status code.
deleteNoteRaw({required int id}) DynamiteRawResponse<String, void>
This method and the response it returns is experimental. The API might change without a major version bump.
executeRawRequest(String method, Uri uri, Map<String, String> headers, Uint8List? body, Set<int>? validStatuses) Future<HttpClientResponse>
Executes a HTTP request against give full uri.
inherited
executeRequest(String method, String path, Map<String, String> headers, Uint8List? body, Set<int>? validStatuses) Future<HttpClientResponse>
Makes a request against a given path.
inherited
getNote({required int id, String? exclude, String? ifNoneMatch}) Future<DynamiteResponse<Note, void>>
Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers. Throws a DynamiteApiException if the API call does not return an expected status code.
getNoteRaw({required int id, String? exclude, String? ifNoneMatch}) DynamiteRawResponse<Note, void>
This method and the response it returns is experimental. The API might change without a major version bump.
getNotes({String? category, String? exclude, int? pruneBefore, int? chunkSize, String? chunkCursor, String? ifNoneMatch}) Future<DynamiteResponse<BuiltList<Note>, void>>
Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers. Throws a DynamiteApiException if the API call does not return an expected status code.
getNotesRaw({String? category, String? exclude, int? pruneBefore, int? chunkSize, String? chunkCursor, String? ifNoneMatch}) DynamiteRawResponse<BuiltList<Note>, void>
This method and the response it returns is experimental. The API might change without a major version bump.
getSettings() Future<DynamiteResponse<Settings, void>>
Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers. Throws a DynamiteApiException if the API call does not return an expected status code.
getSettingsRaw() DynamiteRawResponse<Settings, void>
This method and the response it returns is experimental. The API might change without a major version bump.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateNote({required int id, String? content, int? modified, String? title, String? category, int? favorite, String? ifMatch}) Future<DynamiteResponse<Note, void>>
Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers. Throws a DynamiteApiException if the API call does not return an expected status code.
updateNoteRaw({required int id, String? content, int? modified, String? title, String? category, int? favorite, String? ifMatch}) DynamiteRawResponse<Note, void>
This method and the response it returns is experimental. The API might change without a major version bump.
updateSettings({required Settings settings}) Future<DynamiteResponse<Settings, void>>
Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers. Throws a DynamiteApiException if the API call does not return an expected status code.
updateSettingsRaw({required Settings settings}) DynamiteRawResponse<Settings, void>
This method and the response it returns is experimental. The API might change without a major version bump.

Operators

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