LedgerCumulativeChart class
A month's spending summed day by day against its budget
(art.cumulative): the engraved area under the inked line, the budget
as a double rule with its label, the budget's pace as a dashed green
line from nothing to the budget at the month's end, the days ahead
shaded, today's point and its dotted drop, the rent day's note, and
the day ruler under it. 342 by 248 on a phone, 712 by 392 from 1024.
LedgerCumulativeChart(cumulative: spent, budget: 2700, days: 31, high: 3000, grid: grid, budgetLabel: 'Budget \$2,700')
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- LedgerCumulativeChart
Constructors
-
LedgerCumulativeChart({required List<
double> cumulative, required double budget, required int days, required double high, required List<LedgerGridLine> grid, required String budgetLabel, LedgerChartNote? note, String month = 'Oct', double? height, String semanticLabel = 'Spent through the month against the budget', Key? key}) -
A month's
cumulativespending against itsbudget.const
Properties
- budget → double
-
The month's budget, drawn as a double rule.
final
- budgetLabel → String
-
The budget rule's words.
final
-
cumulative
→ List<
double> -
The month's spending summed by the end of each day so far.
final
- days → int
-
How many days the month has.
final
-
grid
→ List<
LedgerGridLine> -
The dotted lines across, with their scale.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
The plot's height; null takes the phone's or the desktop's.
final
- high → double
-
The plot's ceiling.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- month → String
-
The month's short name, for the ruler's first label (Oct 1).
final
- note → LedgerChartNote?
-
A note hung on a day (the rent's jump).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semanticLabel → String
-
What a screen reader says the chart is.
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