getAmount method

double getAmount()

Implementation

double getAmount(){
    double shipping = double.parse(this.shipping);
    double discount = double.parse(this.discount);
    double tax = double.parse(this.tax);
    double tip = double.parse(this.tip);

    return shipping - discount + tax + tip;
}