TableColumnFormatter<R extends Object> class
Formatting of a column, its heading and its cell value formatter.
A column that holds date-times is declared with forTimestamp or forTimestampKey, which makes TextTableOutputFormatter state the display time zone in the heading.
R is the row object type.
Constructors
-
TableColumnFormatter(String heading, {required ValueFormatter<
R> formatter, bool isTimestamp = false}) -
const
-
TableColumnFormatter.forElement(String heading, {required ValueGetter<
R> getter}) -
TableColumnFormatter.forTimestamp(String heading, {required ValueGetter<
R> getter})
Properties
-
formatter
→ ValueFormatter<
R> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- heading → String
-
final
- isTimestamp → bool
-
Whether the column holds date-times, and its heading therefore states
the display time zone.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Static Methods
-
forKey(
String heading, {required String key}) → TableColumnFormatter< Map< String, Object?> > -
forTimestampKey(
String heading, {required String key}) → TableColumnFormatter< Map< String, Object?> >