LedgerVisitRuler class

One merchant's month as a ruler (art.visit_ruler), 34 tall: a hatched bar on each day it was paid, as tall as that day's total there, the record's own current day solid; the days ahead shaded; a tick for every day, long on the weeks. moneyIn inks it green (a payer). startLabel and endLabel stand 4 under it at its two ends (.ruler-labs: Oct 1, Oct 31).

LedgerVisitRuler(visits: const [(28, 6.75), (23, 6.5)], days: 31, today: 28, current: 28, startLabel: 'Oct 1', endLabel: 'Oct 31')
Inheritance

Constructors

LedgerVisitRuler({required List<(int, double)> visits, required int days, required int today, int? current, bool moneyIn = false, String? semanticLabel, String? startLabel, String? endLabel, Key? key})
A merchant's visits over a month of days, up to today.
const

Properties

current → int?
The record's own day, drawn solid.
final
days → int
How many days the month has.
final
endLabel → String?
The month's last day, under the ruler's end.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
moneyIn → bool
Whether the payments came in (a payer), inked green.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel → String?
What a screen reader says the ruler is; null says how many visits, in English ("1 payment this month", "3 payments this month"). An app in another language words it here, with its own plural forms.
final
startLabel → String?
The month's first and last day under the ruler's two ends.
final
today → int
Today's day; the days after it are shaded.
final
visits → List<(int, double)>
Each payment's day and amount.
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