NdefRecord class

The class represents the immutable NDEF record.

Constructors

NdefRecord({required NdefTypeNameFormat typeNameFormat, required Uint8List type, required Uint8List identifier, required Uint8List payload})
Constructs an instance with the given values.
factory
NdefRecord.createExternal(String domain, String type, Uint8List data)
Constructs an instance containing external (application-specific) data.
factory
NdefRecord.createMime(String type, Uint8List data)
Constructs an instance containing media data as defined by RFC 2046.
factory
NdefRecord.createText(String text, {String languageCode = 'en'})
Constructs an instance containing UTF-8 text.
factory
NdefRecord.createUri(Uri uri)
Constructs an instance containing URI.
factory

Properties

byteLength int
The length in bytes of the NDEF record when stored on the tag.
no setter
hashCode int
The hash code for this object.
no setterinherited
identifier Uint8List
Identifier.
final
payload Uint8List
Payload.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type Uint8List
Type.
final
typeNameFormat NdefTypeNameFormat
Type Name Format.
final

Methods

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

Constants

URI_PREFIX_LIST → const List<String>
URI_PREFIX_LIST