operator == method

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

Returns true if this interval starts and ends same as the other interval.

See compareTo for detailed interval comparison rules.

Implementation

@override
bool operator ==(Object other) {
  return other is Interval && start == other.start && end == other.end;
}