operator == method

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

Two Fixed values are considered equal if they have the same value irrespective of scale.

Implementation

@override
bool operator ==(covariant Fixed other) {
  final scaled = _scale2(this, other);
  return scaled.one.minorUnits == scaled.two.minorUnits;
}