MifareClassic constructor

const MifareClassic({
  1. required NfcTag tag,
  2. required Uint8List identifier,
  3. required int type,
  4. required int blockCount,
  5. required int sectorCount,
  6. required int size,
  7. required int maxTransceiveLength,
  8. required int timeout,
})

Constructs an instance with the given values for testing.

The instances constructs by this way are not valid in the production environment. Only instances obtained from the MifareClassic.from are valid.

Implementation

const MifareClassic({
  required NfcTag tag,
  required this.identifier,
  required this.type,
  required this.blockCount,
  required this.sectorCount,
  required this.size,
  required this.maxTransceiveLength,
  required this.timeout,
}) : _tag = tag;