totalPrice property

double get totalPrice

Calculates the total price for this item.

Implementation

double get totalPrice => unitPrice * quantity;