LedgerFact class
One fact of a LedgerFacts: its label in the capitals, its value in the serif (money with its cents set smaller), and its note.
LedgerFact.money('Left', 213.88, note: '3 days to go')
LedgerFact('Pace', '90%', note: 'Day 28 of 31; 92% spent')
Constructors
- LedgerFact(String label, String text, {required String note, LedgerTone tone = LedgerTone.plain})
-
A fact worded
text, under itslabeland over itsnote.const - LedgerFact.money(String label, num amount, {required String note, bool showSign = false, bool showCents = true, LedgerTone tone = LedgerTone.plain})
-
A sum: its dollars, and its cents set smaller (
fact_money).const
Properties
- amount → num?
-
The fact's money, when it is (LedgerFact.money).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- label → String
-
The fact's name, in the capitals.
final
- note → String
-
A line under the fact.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showCents → bool
-
Whether the money shows its cents.
final
- showSign → bool
-
Whether the money shows its sign.
final
- text → String?
-
The fact's words, when it is not money.
final
- tone → LedgerTone
-
LedgerTone.moneyIn sets it green, LedgerTone.over vermilion.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited