Client class
Base client to interact with the api.
Constructors
- Client()
Properties
-
endpoint
→ Map<
String, dynamic> ? -
Getter for the endpoints
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- RateLimit ↔ NBRateLimitError?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
fetch(
{String? endpoint = null, int amount = 1}) → Future< List< NBResponse> > - Fetch a random instance of a endpoint from the api
-
fetchFile(
String endpoint) → Future< NBBufferResponse> - Fetch and download a random file with its metadata (if available).
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
search(
String query, {String? endpoint = null, int amount = 1}) → Future< List< NBResponse> > - Search for a query
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited