ScanResult constructor

ScanResult({
  1. required String status,
  2. String? data,
})

Constructor for creating a ScanResult object.

status is a required parameter representing the status of the scan operation. data is an optional parameter representing the data obtained from the scan operation.

Implementation

ScanResult({required this.status, this.data});