DashboardView class

A view in the UI.

A view can be a camera feed or any other UI element. Views are arranged in a grid.

Constructors

DashboardView({required String name, required ViewBuilder builder, required Widget iconFunc(), CameraName? key})
A const constructor.

Properties

builder ViewBuilder
A function to build this view.
final
flutterKey Key
The Flutter widget key for this view.
final
hashCode → int
The hash code for this object.
no setterinherited
icon Widget
The icon used to represent the view.
no setter
iconFunc Widget Function()
A function to dynamically compute the icon for the view.
getter/setter pair
key CameraName?
A unique key to use while selecting this view.
final
name → String
The name of the view.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Json
Converts name of uiView/cameraKey into json format
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

allViews → List<DashboardView>
Expands or contracts based on number of camera/ui views.
final
blank DashboardView
A blank view.
final
cameraViews → List<DashboardView>
A list of views that represent all the camera feeds.
final
uiViews → List<DashboardView>
A list of views that represent all non-camera feeds.
final

Static Methods

fromJson(Json json) DashboardView?
Finds the right view in allViews that matches the given JSON.
getCameraStatus(CameraName name) Widget
An icon to indicate the status of the given camera.