from static method

NdefIos? from(
  1. NfcTag tag
)

Returns an instance for tag, or null when the tag does not hold NDEF.

Implementation

static NdefIos? from(NfcTag tag) {
  final data = tag.data.ndefIos;
  if (data == null) return null;
  return NdefIos._(tag.data.handle, status: ndefStatusFromWire(data.status), capacity: data.capacity);
}