LedgerCategoryMini class
A category's month in a record's margin (.cat-mini): its name on
the leader to what it spent, the gauge to its budget under them
with the month's pace, then its subtitle and trailingSubtitle (the end
vermilion over budget). With no budget (a month gone by) the gauge
is left out and only the sub line follows. Unlike LedgerCategoryLine
it keeps one shape at every width. Stand it 16 under its head; onTap
makes it one link to the category.
LedgerCategoryMini(name: 'Dining out', spent: 286.40, budget: 250, pace: 28 / 31, subtitle: 'Budget \$250', trailingSubtitle: 'Over by \$36.40', onTap: () {})
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- LedgerCategoryMini
Constructors
Properties
- autofocus → bool
-
Whether it takes focus when it first appears.
final
- budget → num?
-
The category's budget; null leaves the gauge out (a month gone by).
final
- focusNode → FocusNode?
-
The control's focus; null keeps one of its own. The caller disposes
the node it gives.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- name → String
-
The category's name.
final
- onTap → VoidCallback?
-
Opens the category.
final
- pace → double?
-
How far through the month it is, 0 to 1, marked on the gauge.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spent → num
-
What the category spent.
final
- subtitle → String?
-
The sub line's start words (the budget).
final
- trailingSubtitle → String?
-
The sub line's end words, vermilion over budget.
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