ScanResult class
A class representing the result of a scan operation.
Constructors
- ScanResult({required String status, String? data})
- Constructor for creating a ScanResult object.
-
ScanResult.fromJson(Map<
Object?, Object?> json) -
Factory method to create a ScanResult object from a JSON map.
factory
Properties
- data → String?
-
The optional data obtained from the scan operation. This may be null if no data was retrieved.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → String
-
The status of the scan operation. This can be a success or an error message.
final
Methods
-
extractQrModel(
) → QrModel? - method to return a QrModel object from ScanResult
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited