MiFare class

The class provides access to NFCMiFareTag API for iOS.

Acquire MiFare instance using MiFare.from.

Constructors

MiFare({required NfcTag tag, required MiFareFamily mifareFamily, required Uint8List identifier, required Uint8List? historicalBytes})
Constructs an instance with the given values for testing.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
historicalBytes Uint8List?
The value from NFCMiFareTag#historicalBytes on iOS.
final
identifier Uint8List
The value from NFCMiFareTag#identifier on iOS.
final
mifareFamily MiFareFamily
The value from NFCMiFareTag#mifareFamily on iOS.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendMiFareCommand(Uint8List commandPacket) Future<Uint8List>
Sends the native MiFare command to the tag.
sendMiFareIso7816Command({required int instructionClass, required int instructionCode, required int p1Parameter, required int p2Parameter, required Uint8List data, required int expectedResponseLength}) Future<Iso7816ResponseApdu>
Sends the ISO7816 APDU to the tag.
sendMiFareIso7816CommandRaw(Uint8List data) Future<Iso7816ResponseApdu>
Sends the ISO7816 APDU to the tag.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

from(NfcTag tag) MiFare?
Get an instance of MiFare for the given tag.