DeviceInformationRecord class

A NDEF record containing device information.

This record type stores information about a device such as vendor name, model name, unique name, UUID, and version information.

Inheritance

Constructors

DeviceInformationRecord({String? vendorName, String? modelName, String? uniqueName, String? uuid, String? versionString, List<DataElement>? undefinedData})
Constructs a DeviceInformationRecord with optional device information fields.

Properties

basicInfoString String
Gets a basic information string containing ID, TNF, and type.
no setterinherited
decodedType String
Gets the type as a decoded UTF-8 string.
getter/setter pairinherited-setteroverride-getter
encodedType Uint8List?
The raw encoded type bytes.
getter/setter pairinherited
flags NDEFRecordFlags
The flags header of the record.
getter/setter pairinherited
fullType String?
Gets the full qualified type including TNF prefix.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id Uint8List?
The ID of the record (optional).
getter/setter pairinherited
idString String
Hex String of id, return "(empty)" when the id bytes is null
getter/setter pairinherited
maxPayloadLength int?
Gets the maximum payload length for this record instance.
no setterinherited
minPayloadLength int
Gets the minimum payload length for this record instance.
no setteroverride
modelName String?
The model name of the device.
getter/setter pair
payload Uint8List?
The payload data of the record.
getter/setter pairoverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tnf TypeNameFormat
Gets the Type Name Format of this record.
getter/setter pairinherited
type Uint8List?
Gets the type as raw bytes.
getter/setter pairinherited
undefinedData List<DataElement>
Additional undefined data elements.
getter/setter pair
uniqueName String?
The unique name of the device.
getter/setter pair
uuid String
Gets the UUID as a formatted string.
getter/setter pair
uuidData Uint8List
The UUID as raw bytes.
getter/setter pair
vendorName String?
The vendor name of the device.
getter/setter pair
versionString String?
The version string of the device.
getter/setter pair

Methods

encode() Uint8List
Encode this NDEFRecord to raw byte data.
inherited
isEqual(NDEFRecord other) bool
Checks if this record is equal to other by comparing TNF, type, ID, and payload.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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

Constants

classMinPayloadLength → const int
The minimum payload length for Device Information records.
classType → const String
The type identifier for Device Information records.