operator == method

  1. @override
bool operator ==(
  1. covariant Money other
)
override

Returns true if other is the same amount of money in the same currency.

Implementation

@override
bool operator ==(covariant Money other) =>
    identical(this, other) ||
    (isInSameCurrencyAs(other) && other.amount == amount);