DetectionStatusLine class

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

Constructors

DetectionStatusLine({dynamic key, required Future<String?> fetch(), required String fallbackName, Duration interval = const Duration(seconds: 5), dynamic arrivalImage(String url, String label) = arrivalPicture, Future<bool> saveSettings(Map<String, Object> update)?})
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
saveSettings → Future<bool> Function(Map<String, Object> update)?
Posts to ObservANT's /settings; with it the picture can be turned right here, as on the Camera page.
final

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