HGridBuilder class
HGridBuilder is used to construct an immutable HGrid instance.
See Project Haystack
Constructors
- HGridBuilder()
- HGridBuilder.fromGrid(HGrid grid)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- meta → HDictBuilder
-
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
Get the builder for the grid meta map.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addCol(
String name, {HVal fill()?}) → HDictBuilder - Add column and return builder for column metadata. Columns cannot be added after adding the first row.
-
addRow(
List< HVal?> cells) → HGridBuilder - Add row with array of cells which correspond to column order. Return this.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeCol(
String name) → void -
toGrid(
) → HGrid -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
collectColumns(
Iterable< HDict> dicts) → Iterable<String> -
Collects column names from
dicts
. -
collectValues(
HDict dict, Iterable< BCol> columns) → List<HVal?> -
Collects values from
dict
for givencolumns
. -
dictsToGrid(
HDict meta, List< HDict> dicts) → HGrid - Convenience to build grid from array of HDict. Any null entry will be row of all null cells.
-
hisItemsToGrid(
HDict meta, List< HHisItem> items) → HGrid - Convenience to build grid from array of HHisItem.