fromRaw static method

NDEFRecord fromRaw(
  1. NDEFRawRecord raw
)

Convert an NDEFRawRecord to decoded ndef.NDEFRecord. Use NDEFRecordConvert.fromRaw to invoke.

Implementation

static ndef.NDEFRecord fromRaw(NDEFRawRecord raw) {
  return ndef.decodePartialNdefMessage(
      raw.typeNameFormat, raw.type.toBytes(), raw.payload.toBytes(),
      id: raw.identifier == "" ? null : raw.identifier.toBytes());
}