Transaction class
Transaction data class Positive quantity = buy transaction Negative quantity = sell transaction
Constructors
- Transaction({required double quantity, required double price})
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
validate(
) → void - Validates transaction data
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited