MinimalDataColumn<R> class
One column of a MinimalDataTable: its label, the words a row shows in it (value), and whether a press on its header sorts it.
MinimalDataColumn<({String name, double total})>('Total', value: (o) => '\$${o.total}', sortKey: (o) => o.total, numeric: true)
- Annotations
Constructors
-
MinimalDataColumn(String label, {required String value(R row), Comparable<
Object?> sortKey(R row)?, bool sortable = false, bool numeric = false, bool mono = false, int flex = 1, Widget cell(BuildContext context, R row)?}) -
A column headed
label.const
Properties
- cell → Widget Function(BuildContext context, R row)?
-
Paints a row's cell in place of value's words (a status badge). The
column is measured as a status badge of value, and is never cut
narrower than that.
final
- flex → int
-
Its share of the width the figure and id columns leave, over what the
shared columns' words ask for; numeric and mono columns take their
own width instead.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- label → String
-
Its heading, printed in capitals.
final
- mono → bool
-
Its values in mono (an id, a code). An id column, like a figure
column, is as wide as its widest id (or its header), never cut short.
final
- numeric → bool
-
Figures: right-aligned, in mono. A figure column is as wide as its
widest figure (or its header), never cut short.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sortable → bool
-
Whether a press on its header sorts it (always, with a sortKey).
final
-
sortKey
→ Comparable<
Object?> Function(R row)? -
What a row sorts by; null with sortable sorts by value.
final
- value → String Function(R row)
-
The words a row shows in it.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited