CameraSettingsPanel class

The cat cam's settings: a live preview, rotation, detection threshold and name, then what it runs.

Constructors

CameraSettingsPanel({dynamic key, required Future<String?> fetchSettings(), required Future<bool> saveSettings(Map<String, Object> update), required Future<String?> fetchHealthz(), dynamic preview(String url) = cameraPreview, Duration previewInterval = const Duration(seconds: 3)})
const

Properties

fetchHealthz → Future<String?> Function()
GET /healthz, or null.
final
fetchSettings → Future<String?> Function()
GET /settings, or null when no cat cam answers.
final
hashCode → int
The hash code for this object.
no setterinherited
preview → dynamic Function(String url)
final
previewInterval → Duration
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
saveSettings → Future<bool> Function(Map<String, Object> update)
POST /settings with these values; true once the cat cam took them.
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