from static method

IsoDep? from(
  1. NfcTag tag
)

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

Implementation

static IsoDep? from(NfcTag tag) {
  final data = tag.data.isoDep;
  if (data == null) return null;
  return IsoDep._(
    tag.data.handle,
    hiLayerResponse: data.hiLayerResponse,
    historicalBytes: data.historicalBytes,
    isExtendedLengthApduSupported: data.isExtendedLengthApduSupported,
    maxTransceiveLength: data.maxTransceiveLength,
    timeout: Duration(milliseconds: data.timeout),
  );
}