takeInitialNdefMessage method

Future<NdefMessage?> takeInitialNdefMessage()

The NDEF message that launched the app, if it was launched by a background tag read.

Consumed by the first call, so a widget rebuild cannot process it twice.

Implementation

Future<NdefMessage?> takeInitialNdefMessage() async {
  final message = await iosApi.takeInitialNdefMessage();
  return message == null ? null : ndefMessageFromWire(message);
}