Table.from constructor
Implementation
factory Table.from(List<List<String?>> data, {bool hasHeader = false}) {
if (data.isEmpty) return Table(<String>[], <List>[]);
List<String> header;
List<List> rows = data;
if (hasHeader) {
header = data.first.cast<String>();
rows = rows.skip(1).toList();
} else {
header = <String>[]..length = data.first.length;
}
return Table(header, rows);
}