Matter constructor

Matter({
  1. required ResourceType type,
  2. required String id,
  3. String idV1 = "",
  4. required int maxFabrics,
  5. required bool hasQrCode,
  6. String? action,
})

Creates a Matter object.

Implementation

Matter({
  required super.type,
  required super.id,
  this.idV1 = "",
  required this.maxFabrics,
  required this.hasQrCode,
  this.action,
})  : assert(idV1.isEmpty || Validators.isValidIdV1(idV1),
          '"$idV1" is not a valid `idV1`'),
      _originalAction = action;