from static method

NfcF? from(
  1. NfcTag tag
)

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

Implementation

static NfcF? from(NfcTag tag) {
  final data = tag.data.nfcF;
  if (data == null) return null;
  return NfcF._(
    tag.data.handle,
    manufacturer: data.manufacturer,
    systemCode: data.systemCode,
    maxTransceiveLength: data.maxTransceiveLength,
    timeout: Duration(milliseconds: data.timeout),
  );
}