Result constructor
Result(
- String text,
- Int8List? rawBytes,
- BarcodeFormat format, {
- List<
ResultPoint> ? points, - int? numBits,
- DateTime? time,
Implementation
Result(this.text, this.rawBytes, this.format,
{List<ResultPoint>? points, int? numBits, DateTime? time})
: numBits = numBits ?? (rawBytes == null ? 0 : 8 * rawBytes.length),
time = time ?? DateTime.now() {
if (points != null) {
resultPoints.addAll(points);
}
}