LedgerFilters<T> class

Filter pills (.filters): each its own ring of the light paper, the chosen one in the ink, wrapping 6 apart; value null chooses none. label names the set. onChanged null shows them without letting them change. optionKeys keys each pill by its value. The options are any values: labelOf words each (its toString() when null).

LedgerFilters(label: 'Direction', options: const ['All', 'Money in', 'Money out'], value: 'All', onChanged: (f) {})
LedgerFilters<({String words, bool? incoming})>(label: 'Direction', options: directions, value: directions.first, labelOf: (d) => d.words, onChanged: (d) {})
Inheritance

Constructors

LedgerFilters({required List<T> options, required T? value, required String label, ValueChanged<T?>? onChanged, Map<T, Key>? optionKeys, String labelOf(T option)?, LedgerStyle? style, Key? key})
Pills for each of options, the value chosen, named label.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label → String
What the set filters, for a screen reader.
final
labelOf → String Function(T option)?
The words of each pill; null: the value's toString().
final
onChanged → ValueChanged<T?>?
Called with the pill chosen; null shows them without letting them change.
final
optionKeys → Map<T, Key>?
A key for each option's pill, by its value (a test's or a walk's target); an option it leaves out stands unkeyed.
final
options → List<T>
The pills' values, in order.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
style → LedgerStyle?
Each pill's look, over components.toggleGroup (the same pill). It reads fill, foreground, edge, side, overlay, shape, padding and textStyle; the chosen pill is selected.
final
value → T?
The chosen pill's value; null chooses none.
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
wordsOf(T option) → String
The words of option.

Operators

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