ScanResult constructor
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});