operator + method
Overrides the '+' operator to add a RistrettoPoint to another object.
This operator override allows you to add a RistrettoPoint to another object. It delegates the addition to the superclass and then converts the result to a RistrettoPoint.
Parameters:
- other: The object to add to the RistrettoPoint.
Returns:
- RistrettoPoint: The result of the addition as a RistrettoPoint.
Implementation
@override
RistrettoPoint operator +(other) {
final add = super + other;
return RistrettoPoint.fromEdwardsPoint(add);
}