flutter-nfc-manager
flutter-nfc-manager copied to clipboard
Wrong output from ndef message.
Hello, when trying to retrieve the content I get the string with other chars appended.
The content from the tag is "yoooo" as seen in the following screenshot:

The code
final message = ndef.cachedMessage;
final payload = message?.records[0].payload ?? const Iterable<int>.empty();
final payloadStr = String.fromCharCodes(payload);
print("payloadStr $payloadStr");
The printed output in the debug console:

I have also tried:
final payload = message?.records[0].payload ?? <int>[];
final payloadStr = Utf8Decoder().convert(payload);
But it has the same result.