from static method

NfcA? from(
  1. NfcTag tag
)

Returns an instance for tag, or null when the tag does not answer to NfcA.

Implementation

static NfcA? from(NfcTag tag) {
  final data = tag.data.nfcA;
  if (data == null) return null;
  return NfcA._(
    tag.data.handle,
    atqa: data.atqa,
    sak: data.sak,
    maxTransceiveLength: data.maxTransceiveLength,
    timeout: Duration(milliseconds: data.timeout),
  );
}