TemplateNFC.fromUint8List constructor

TemplateNFC.fromUint8List(
  1. String id,
  2. Uint8List? template,
  3. String? nome,
  4. String? cognome,
)

Implementation

factory TemplateNFC.fromUint8List(
    String id, Uint8List? template, String? nome, String? cognome) {
  String guid = id; // Genera un GUID
  String templateBase64 = template != null
      ? base64Encode(template)
      : ""; // Codifica il template in base64
  return TemplateNFC(
      id: guid, templateBase64: templateBase64, nome: nome, cognome: cognome);
}