toString method

  1. @override
String toString()
override

Returns a string representation of the scan result.

The format is: 'QrBarScanResult(type: TYPE_LABEL, value: VALUE, time: TIME)'

This is useful for debugging, logging, and displaying scan results in a readable format. The type is displayed using its human-readable label from the QrBarType extension.

Example output: 'QrBarScanResult(type: QR Code, value: https://flutter.dev, time: 2023-05-15 14:30:00.000)'

Implementation

@override
String toString() =>
    'QrBarScanResult(type: ${type.label}, value: $value, time: $time)';