CatCamPeers class

The other cat cams this one names in /healthz (peers), each with its picture and its cat.

Constructors

CatCamPeers({dynamic key, required Future<String?> fetchOwn(), required Future<String?> fetchFrom(String url), Duration interval = const Duration(seconds: 10), dynamic picture(String url) = peerPicture})
const

Properties

fetchFrom → Future<String?> Function(String url)
A GET to another cat cam; it answers this page only when it lists this one as a peer too.
final
fetchOwn → Future<String?> Function()
This cat cam's /healthz, which names the others.
final
hashCode → int
The hash code for this object.
no setterinherited
interval → Duration
final
picture → dynamic Function(String url)
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

createState() → dynamic
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