operator == method

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

Overriding the equality operator to compare SolDay objects based on the Sol number. This is used to check if a SolDay object is already present in a list.

Implementation

@override
bool operator ==(Object other) {
  return other is SolDay &&
      sol == other.sol;
}