PortalImageSearchService class

Client for the server's cached Unsplash proxy.

Registered lazily rather than in main(): it holds no state, so every caller can construct its own.

Constructors

PortalImageSearchService({ApiClient? api})

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

defaultPerPage → const int
The server caps perPage at 30 and has no page parameter, so one search is one screenful — ask for a generous one.