asVerticalTableData method
Implementation
List<List<String>> asVerticalTableData() {
if (isEmpty) return [];
final check = entries.first.value;
if (check is List) {
return [
...entries.map((e) =>
[e.key, ...(e.value as List<dynamic>).map((e) => e.toString())]),
];
} else {
return [
...entries.map((e) => [e.key, e.value.toString()]),
];
}
}