writeNdefRecord method
Writes an NDEF record to a discovered NFC tag.
Implementation
Future<bool> writeNdefRecord({
required String type,
required String payload,
}) async {
try {
final success = await _channel.invokeMethod<bool>(
'writeNdefRecord',
{
'type': type,
'payload': payload,
},
);
return success ?? false;
} on PlatformException {
return false;
}
}