for (var element in myList) {
switch (element) {
case {1: 'Oo', 2: String smile}:
print('Full match with $smile');
case {"(╯'□')╯︵ ┻━┻": double zero}:
print("(╯'□')╯︵ ┻━┻");
case {
'employee': {
'name': String name,
'boss': {
'name': String bossName,
'idEmployees': List idEmployees
},
},
}:
print(
'employee: $name, boss: $bossName, idEmployees: $idEmployees'
);
default:
print('No match');
}
}