readNdef method
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(),
),
);
}