BudgetState class

Constructors

BudgetState({required List<BudgetItem> items, required double netTotal, double marginPercent = 20.0, double taxPercent = 21.0, bool includeTax = true})
const
BudgetState.initial()
factory

Properties

finalTotal double
no setter
hashCode int
The hash code for this object.
no setterinherited
includeTax bool
final
items List<BudgetItem>
final
marginAmount double
no setter
marginPercent double
final
netTotal double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subtotalWithMargin double
no setter
taxAmount double
no setter
taxPercent double
final

Methods

copyWith({List<BudgetItem>? items, double? netTotal, double? marginPercent, bool? includeTax}) BudgetState
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