Device constructor

Device({
  1. required ResourceType type,
  2. required String id,
  3. String idV1 = "",
  4. required DeviceProductData productData,
  5. required DeviceMetadata metadata,
  6. required List<Relative> services,
  7. String? identifyAction,
})

Creates a Device object.

Implementation

Device({
  required super.type,
  required super.id,
  this.idV1 = "",
  required this.productData,
  required this.metadata,
  required this.services,
  String? identifyAction,
})  : assert(idV1.isEmpty || Validators.isValidIdV1(idV1),
          '"$idV1" is not a valid `idV1`'),
      _originalMetadata = metadata,
      _originalIdentifyAction = identifyAction;