Flutter plugin for scanning and generating QR codes using the ZXing library, supporting Android, iOS, and desktop platforms
flutterbarcode-generatorbarcode-scannergeneratorqrqrcodeqrcode-generatorqrcode-scannerscannerzxingbarcodezxscanner
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.1 KiB
46 lines
1.1 KiB
// GENERATED CODE - DO NOT MODIFY BY HAND |
|
|
|
part of 'code.dart'; |
|
|
|
// ************************************************************************** |
|
// TypeAdapterGenerator |
|
// ************************************************************************** |
|
|
|
class CodeAdapter extends TypeAdapter<Code> { |
|
@override |
|
final int typeId = 0; |
|
|
|
@override |
|
Code read(BinaryReader reader) { |
|
final numOfFields = reader.readByte(); |
|
final fields = <int, dynamic>{ |
|
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(), |
|
}; |
|
return Code() |
|
..isValid = fields[0] as bool? |
|
..format = fields[1] as int? |
|
..text = fields[2] as String?; |
|
} |
|
|
|
@override |
|
void write(BinaryWriter writer, Code obj) { |
|
writer |
|
..writeByte(3) |
|
..writeByte(0) |
|
..write(obj.isValid) |
|
..writeByte(1) |
|
..write(obj.format) |
|
..writeByte(2) |
|
..write(obj.text); |
|
} |
|
|
|
@override |
|
int get hashCode => typeId.hashCode; |
|
|
|
@override |
|
bool operator ==(Object other) => |
|
identical(this, other) || |
|
other is CodeAdapter && |
|
runtimeType == other.runtimeType && |
|
typeId == other.typeId; |
|
}
|
|
|