NDEFRecord class
The base class of all types of records. Also represents an record of unknown type.
- Implementers
Constructors
- NDEFRecord({TypeNameFormat? tnf, Uint8List? type, Uint8List? id, Uint8List? payload})
Properties
- basicInfoString → String
-
no setter
- decodedType ↔ String?
-
getter/setter pair
- encodedType ↔ Uint8List?
-
getter/setter pair
- flags ↔ NDEFRecordFlags
-
getter/setter pair
- fullType → String?
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ Uint8List?
-
getter/setter pair
- idString ↔ String
-
Hex String of id, return "(empty)" when the id bytes is null
getter/setter pair
- maxPayloadLength → int?
-
no setter
- minPayloadLength → int
-
no setter
- payload ↔ Uint8List?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tnf ↔ TypeNameFormat
-
getter/setter pair
- type ↔ Uint8List?
-
getter/setter pair
Methods
-
encode(
) → Uint8List - Encode this NDEFRecord to raw byte data.
-
isEqual(
NDEFRecord other) → bool -
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
Static Methods
-
decodeStream(
ByteStream stream, TypeFactory typeFactory) → NDEFRecord - Decode a NDEF NDEFRecord from part of ByteStream.
-
defaultTypeFactory(
TypeNameFormat tnf, String classType) → NDEFRecord - Construct an instance of a specific type (subclass) of NDEFRecord according to tnf and type
-
doDecode(
TypeNameFormat tnf, Uint8List type, Uint8List payload, {Uint8List? id, TypeFactory typeFactory = NDEFRecord.defaultTypeFactory}) → NDEFRecord - Decode a NDEFRecord record from raw data.
Constants
- classMaxPayloadLength → const int?
- classMinPayloadLength → const int
- classTnf → const TypeNameFormat?
- Predefined TNF of a specific record type.
-
tnfString
→ const List<
String>