DaviColumn<DATA> class
The Davi column.
The optional value mappings intValue
, doubleValue
, stringValue
,
iconValue
and objectValue
allows automatic cell configuration
by identifying and displaying data types in the row object.
- Inheritance
-
- Object
- ChangeNotifier
- DaviColumn
Constructors
-
DaviColumn({dynamic id, double width = 100, double? grow, String? name, EdgeInsets? headerPadding, EdgeInsets? cellPadding, Alignment? headerAlignment, Alignment? cellAlignment, CellBackgroundBuilder<
DATA> ? cellBackground, TextStyle? headerTextStyle, TextStyle? cellTextStyle, TextOverflow? cellOverflow, int? fractionDigits, DaviCellBuilder<DATA> ? cellBuilder, Widget? leading, DaviDataComparator<DATA> ? dataComparator, PinStatus pinStatus = PinStatus.none, DaviIntValueMapper<DATA> ? intValue, DaviDoubleValueMapper<DATA> ? doubleValue, DaviStringValueMapper<DATA> ? stringValue, DaviIconValueMapper<DATA> ? iconValue, DaviObjectValueMapper<DATA> ? objectValue, bool resizable = true, bool cellClip = false, bool sortable = true, CellStyleBuilder<DATA> ? cellStyleBuilder, DaviCellSemanticsBuilder<DATA> ? semanticsBuilder = defaultSemanticsBuilder})
Properties
- cellAlignment → Alignment?
-
final
-
cellBackground
→ CellBackgroundBuilder<
DATA> ? -
final
-
cellBuilder
→ DaviCellBuilder<
DATA> ? -
Cell widget builder for each row in that column.
final
- cellClip → bool
-
Indicates whether the cell widget should be clipped.
final
- cellOverflow → TextOverflow?
-
final
- cellPadding → EdgeInsets?
-
final
-
cellStyleBuilder
→ CellStyleBuilder<
DATA> ? -
final
- cellTextStyle → TextStyle?
-
final
-
dataComparator
→ DaviDataComparator<
DATA> -
Function used to sort the column. If not defined, it can be created
according to value mappings.
final
-
doubleValueMapper
→ DaviDoubleValueMapper<
DATA> ? -
final
- fractionDigits → int?
-
The optional decimal-point string-representation used by the
default cell width when the
doubleValue
is set.final - grow ↔ double?
-
The grow factor to use for this column.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- headerAlignment → Alignment?
-
final
- headerPadding → EdgeInsets?
-
Padding for the header widget.
final
- headerTextStyle → TextStyle?
-
final
-
iconValueMapper
→ DaviIconValueMapper<
DATA> ? -
final
- id → dynamic
-
Identifier that can be assigned to this column.
final
-
intValueMapper
→ DaviIntValueMapper<
DATA> ? -
final
- leading → Widget?
-
final
- name → String?
-
Optional column name. Displayed by default in the cell header widget.
final
-
objectValueMapper
→ DaviObjectValueMapper<
DATA> ? -
final
- pinStatus → PinStatus
-
final
- resizable ↔ bool
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
semanticsBuilder
→ DaviCellSemanticsBuilder<
DATA> ? -
final
- sort → DaviSort?
-
no setter
- sortable → bool
-
Indicates whether this column allows sorting events.
final
- sortPriority → int?
-
no setter
-
stringValueMapper
→ DaviStringValueMapper<
DATA> ? -
final
- width ↔ double
-
getter/setter pair
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
clearSort(
) → void -
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
setSort(
DaviSort sort, int priority) → void -
setSortPriority(
int value) → bool -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override