CameraSettingsPanel class
ObservANT'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), dynamic detectionPicture(String url) = recentArrivalPicture}) -
const
Properties
- detectionPicture → dynamic Function(String url)
-
Builds a recent arrival's picture from its URL; tests swap the network out.
final
-
fetchHealthz
→ Future<
String?> Function() -
GET /healthz, ornull.final -
fetchSettings
→ Future<
String?> Function() -
GET /settings, ornullwhen no ObservANT 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 /settingswith these values;trueonce ObservANT 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