NdefFormatable class
The class provides access to NdefFormatable API for Android.
Acquire NdefFormatable
instance using NdefFormatable.from
.
Constructors
- NdefFormatable({required NfcTag tag, required Uint8List identifier})
-
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
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
format(
NdefMessage firstMessage) → Future< void> - Format the tag as NDEF, and write the given NDEF message.
-
formatReadOnly(
NdefMessage firstMessage) → Future< void> - Format the tag as NDEF, write the given NDEF message, and make read-only.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
from(
NfcTag tag) → NdefFormatable? -
Get an instance of
NdefFormatable
for the given tag.