getAmount method

int getAmount()

Implementation

int getAmount() => amount >= 0 ? amount : amount * -1;