from static method

NfcB? from(
  1. NfcTag tag
)

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

Implementation

static NfcB? from(NfcTag tag) {
  final data = tag.data.nfcB;
  if (data == null) return null;
  return NfcB._(
    tag.data.handle,
    applicationData: data.applicationData,
    protocolInfo: data.protocolInfo,
    maxTransceiveLength: data.maxTransceiveLength,
  );
}