Check current instance amount is equal than amount or not
amount
bool isEqual(double amount) => this.amount == amount;