operator == method

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

Equality operator.

Two ZoneOffsets are equal if and only if hours == minutes.

Implementation

@override
bool operator ==(Object other) =>
    (other is ZoneOffset) &&
    hours == other.hours &&
    minutes == other.minutes &&
    seconds == other.seconds;