TrialBalance class

Constructors

TrialBalance({bool? balanced, String? from, List<TrialBalanceRow> rows = const [], String? to, int? totalCredit, int? totalDebit})
Returns a new TrialBalance instance.

Properties

balanced ↔ bool?
Balanced is the proof this report exists to give: whether total debits equal total credits. It is computed from the rows above, never assumed, and false means the ledger itself is broken rather than that the report is wrong.
getter/setter pair
from ↔ String?
From is the posting time the window opens at, as it was asked for. Absent means the report runs from the beginning of the ledger.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
rows ↔ List<TrialBalanceRow>
Rows are the accounts that MOVED in one of the windows. An account that never moved is omitted rather than listed at zero, so this is shorter than the chart.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
to ↔ String?
To is the posting time the window closes at, inclusive. Absent means "up to now" — every posting the ledger holds.
getter/setter pair
totalCredit ↔ int?
TotalCredit is the sum of every row's closing credit column, in cents.
getter/setter pair
totalDebit ↔ int?
TotalDebit is the sum of every row's CLOSING debit column, in cents.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

fromJson(dynamic value) → TrialBalance?
Returns a new TrialBalance instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<TrialBalance>
mapFromJson(dynamic json) → Map<String, TrialBalance>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<TrialBalance>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.