operator == method

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

Timetokens are compared based on their value.

Implementation

@override
bool operator ==(Object other) {
  if (other is Timetoken) {
    return value == other.value;
  } else {
    return value == other;
  }
}