operator unary- method Null safety

  1. @override
Alignment operator unary-()
override

Returns the negation of the given Alignment.

Implementation

@override
Alignment operator -() {
  return Alignment(-x, -y);
}