BarcodeData constructor

BarcodeData({
  1. required String data,
  2. required String type,
})

Creates a new instance of BarcodeData with the provided data and type.

Both data and type are required fields and cannot be null.

Implementation

BarcodeData({
  required this.data,
  required this.type,
});