MifareUltralight class

The class provides access to MifareUltralight API for Android.

Acquire MifareUltralight instance using MifareUltralight.from.

Constructors

MifareUltralight({required NfcTag tag, required Uint8List identifier, required int type, required int maxTransceiveLength, required int timeout})
Constructs an instance with the given values for testing.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
identifier Uint8List
The value from Tag#id on Android.
final
maxTransceiveLength int
The value from MifareUltralight#maxTransceiveLength on Android.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeout int
The value from MifareUltralight#timeout on Android.
final
type int
The value from MifareUltralight#type on Android.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readPages({required int pageOffset}) Future<Uint8List>
Sends the Read Pages command to the tag.
toString() String
A string representation of this object.
inherited
transceive({required Uint8List data}) Future<Uint8List>
Sends the NfcA command to the tag.
writePage({required int pageOffset, required Uint8List data}) Future<void>
Sends the Write Page command to the tag.

Operators

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

Static Methods

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