Ndef constructor

const Ndef({
  1. required NfcTag tag,
  2. required bool isWritable,
  3. required int maxSize,
  4. required NdefMessage? cachedMessage,
  5. required Map<String, dynamic> additionalData,
})

Constructs an instance with the given values for testing.

The instances constructs by this way are not valid in the production environment. Only instances obtained from the Ndef.from are valid.

Implementation

const Ndef({
  required NfcTag tag,
  required this.isWritable,
  required this.maxSize,
  required this.cachedMessage,
  required this.additionalData,
}) : _tag = tag;