from static method

NdefAndroid? from(
  1. NfcTag tag
)

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

Implementation

static NdefAndroid? from(NfcTag tag) {
  final data = tag.data.ndefAndroid;
  if (data == null) return null;
  return NdefAndroid._(type: data.type, canMakeReadOnly: data.canMakeReadOnly);
}