getAmount method

double getAmount()

Implementation

double getAmount() => amount ?? .0;