writeNDEFRecords static method

Future<void> writeNDEFRecords(
  1. List<NDEFRecord> message
)

Write NDEF records (in decoded format, Android & iOS only).

There must be a valid session when invoking. cached only works on Android, allowing cached read (may obtain stale data). On Android, this would cause any other open TagTechnology to be closed. See ndef for usage of ndef.NDEFRecord

Implementation

static Future<void> writeNDEFRecords(List<ndef.NDEFRecord> message) async {
  return await writeNDEFRawRecords(message.map((r) => r.toRaw()).toList());
}