Table creation library for command line programs.
- Simple and functional.
- Uses a Map-based function to render the table or an List.
- Fast.
After importing the package in your project you need to create a instance of the class 'Table'.
Table createTable = new Table();
Done, start using it!
const myData = {
"name": "cleide",
"email": "[email protected]",
"pass": "2345678hour",
"age": "99"
};
print(createTable.mapTable(myData, 15, 25));
Table createTable = Table();
List myData = [
["title"],
["LINE"],
["name", "01", "02", "03"],
["pedro", "A", "B", "C"],
["rafa", "X", "Y", "Zeeeee"],
["LINE"],
["19-10-2007", "sus"],
];
print(createTable.arrayTable(myData, 70));