operator == method

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

Determines whether this angle is equal to another object.

Two DiagonalAngle instances are considered equal if they have the same angle value in radians.

Implementation

@override
bool operator ==(Object other) =>
    identical(this, other) ||
    other is DiagonalAngle &&
        runtimeType == other.runtimeType &&
        angleRadians == other.angleRadians;