CameraDevice constructor

CameraDevice(
  1. String id,
  2. String name,
  3. String username,
  4. String password,
  5. String model, {
  6. String? clientId,
  7. bool editPassword = true,
  8. int connectType = 126,
})

Implementation

CameraDevice(
    String id, String name, String username, String password, String model,
    {String? clientId, this.editPassword = true, this.connectType = 126})
    : super(id, username, password, name, model, clientId: clientId) {
  WidgetsBinding.instance.addObserver(this);
  this.addListener<WakeupStateChanged>(_wakeupStateListener);

  wakeupTimer = Timer.periodic(Duration(seconds: 3), _requestStatusTimer);
}