LedgerDataTable<R> class

A ruled table of records (a month's entries, a statement): the headings in the small capitals over the ink rule, each a press that sorts by it (its arrow saying which way), the rows ruled under in the body face with numeric columns in the figures' face at their end. A row is a press that selects it when selectable (its box drawn at its start, filled when chosen; the box over the headings chooses the page), else opens it with onActivate. When columns cannot fit whole words, the other fields appear below the first text field with their column labels. The arrow keys move along the rows, one tab stop for all of them. controller holds the rows, the sort and the selection.

LedgerDataTable<({String title, String amount})>(controller: table, cellText: (e, column) => column.id == 'amount' ? e.amount : e.title)
Inheritance

Constructors

LedgerDataTable({required DesignTableController<R> controller, required String cellText(R row, DesignTableColumn<R> column), bool selectable = true, ValueChanged<R>? onActivate, Key? key})
The rows of controller's page under its headings.
const

Properties

cellText → String Function(R row, DesignTableColumn<R> column)
What a row says in a column.
final
controller → DesignTableController<R>
The rows, the columns and the table's view of them; the caller's.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onActivate → ValueChanged<R>?
A row's Enter, or its press when the table does not select.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectable → bool
Whether a press selects rows.
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited