formatReadOnly method

Future<void> formatReadOnly(
  1. NdefMessage firstMessage
)

Implementation

Future<void> formatReadOnly(NdefMessage firstMessage) {
  return hostApi.ndefFormatableFormatReadOnly(
    handle: _handle,
    firstMessage: NdefMessagePigeon(
      records: firstMessage.records
          .map(
            (e) => NdefRecordPigeon(
              tnf: TypeNameFormatPigeon.values.byName(e.typeNameFormat.name),
              type: e.type,
              id: e.identifier,
              payload: e.payload,
            ),
          )
          .toList(),
    ),
  );
}