CatStatusLine class

The cat cam's name and its cat, polled from /healthz; with no cat cam behind the page, fallbackName alone.

Constructors

CatStatusLine({dynamic key, required Future<String?> fetch(), required String fallbackName, Duration interval = const Duration(seconds: 5), dynamic arrivalImage(String url, String label) = arrivalPicture})
const

Properties

arrivalImage → dynamic Function(String url, String label)
Builds the last arrival's picture from its URL and label; tests swap the network out.
final
fallbackName → String
final
fetch → Future<String?> Function()
The /healthz body, or null when nothing answers it.
final
hashCode → int
The hash code for this object.
no setterinherited
interval → Duration
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