This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Map<String, String> decodeTLV(String tlvData) { | |
Map<String, String> decodedTags = {}; | |
int currentIndex = 0; | |
while (currentIndex < tlvData.length) { | |
String tag = tlvData.substring(currentIndex, currentIndex + 2); | |
currentIndex += 2; | |
if (currentIndex + 2 > tlvData.length) { | |
break; // Insufficient length to extract |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
int bob = 0; | |
int alice = 1; | |
int dan = 2; | |
int charlie = 3; | |
int eve = 4; | |
Map<int, List<int>> people = { | |
alice: [bob, dan], | |
bob: [eve, charlie], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
int bob = 0; | |
int alice = 1; | |
int dan = 2; | |
int charlie = 3; | |
int eve = 4; | |
Map<int, List<int>> people = { | |
alice: [bob, dan], | |
bob: [eve, charlie], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. |