Table class
An experimental class for drawing tables. The API is not final yet.
- Implementers
Constructors
- Table()
Properties
- borderColor ↔ ConsoleColor?
-
The color to be used for rendering the table border.
getter/setter pair
- borderStyle ↔ BorderStyle
-
Which line drawing characters are used to display boxes.
getter/setter pair
- borderType ↔ BorderType
-
Whether line separators should be drawn between rows and columns, and
whether the table should include a border.
getter/setter pair
- columns → int
-
Returns the number of columns in the table.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- headerColor ↔ ConsoleColor?
-
The color to be used for rendering the header row.
getter/setter pair
- headerStyle ↔ FontStyle
-
The font formatting for the header row.
getter/setter pair
- rows → int
-
Returns the number of rows in the table, excluding the header row.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showHeader ↔ bool
-
getter/setter pair
- title ↔ String
-
A title to be displayed above the table.
getter/setter pair
- titleStyle ↔ FontStyle
-
The font formatting for the title.
getter/setter pair
Methods
-
deleteColumn(
int index) → void - Removes the column with given index.
-
deleteRow(
int index) → void - Removes the row with given index.
-
insertColumn(
{String header = '', TextAlignment alignment = TextAlignment.left, int width = 0, int? index}) → void - Insert a new column into the table.
-
insertRow(
List< Object> row, {int? index}) → void - Adds a new row to the table.
-
insertRows(
List< List< rows) → voidObject> > -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
render(
{bool plainText = false}) → String - Renders the table as a string, for printing or further manipulation.
-
setColumnFormatting(
int column, {String? header, TextAlignment? alignment, int? width}) → void - Adjusts the formatting for a given column.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited