operator == method

  1. @override
bool operator ==(
  1. Object other
)
override

Duas durações são iguais quando têm o mesmo type e o mesmo número de dots.

Implementation

@override
bool operator ==(Object other) {
  if (identical(this, other)) return true;
  return other is MusicDuration &&
      other.type == type &&
      other.dots == dots;
}