Transaction class

Transaction data class Positive quantity = buy transaction Negative quantity = sell transaction

Constructors

Transaction({required double quantity, required double price})

Properties

hashCode int
The hash code for this object.
no setterinherited
price double
final
quantity double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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