Skip to content

Commit

Permalink
Merge pull request #163 from knthm/fix-mifare-classic-write
Browse files Browse the repository at this point in the history
fix: MIFARE Classic: replace writeBlock data type check
  • Loading branch information
Harry-Chen authored May 22, 2024
2 parents 5ce2f05 + 95ad73b commit b0d3d48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/flutter_nfc_kit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ class FlutterNfcKit {
static Future<void> writeBlock<T>(int index, T data,
{Iso15693RequestFlags? iso15693Flags,
bool iso15693ExtendedMode = false}) async {
assert(T is String || T is Uint8List);
assert(data is String || data is Uint8List);
var flags = iso15693Flags ?? Iso15693RequestFlags();
await _channel.invokeMethod('writeBlock', {
'index': index,
Expand Down

0 comments on commit b0d3d48

Please sign in to comment.