readNdef method
DOC:
Implementation
Future<NdefMessage?> readNdef() {
return hostApi
.ndefReadNDEF(
handle: _handle,
)
.then((value) => value == null
? null
: NdefMessage(
records: value.records
.map((r) => NdefRecord(
typeNameFormat: TypeNameFormat.values.byName(
r!.typeNameFormat.name,
),
type: r.type,
identifier: r.identifier,
payload: r.payload,
))
.toList(),
));
}