takeInitialTag method
The tag whose intent launched the app, if the app was launched by a tap.
Consumed by the first call: a second call returns null, so a widget rebuild cannot process the same tag twice. Set onTagFromIntent before calling this to catch tags that arrive while the app is already running.
Implementation
Future<NfcTag?> takeInitialTag() async {
final tag = await androidApi.takeInitialTag();
return tag == null ? null : NfcTag(tag);
}