write method

Future<void> write(
  1. List<NDEFRecord> msg
)

Implementation

Future<void> write(List<ndef.NDEFRecord> msg) async {
  if (NfcPlus._bridge != null) return NfcPlus._bridge!.pushNdef(id, msg);
  await NfcNativeDriver.saveNdef(msg.map((r) => r.toFragment()).toList());
}