operator - method Null safety

  1. @override
Alignment operator -(
  1. Alignment other
)
override

Returns the difference between two Alignments.

Implementation

@override
Alignment operator -(Alignment other) {
  if (other is! FractionalOffset) {
    return super - other;
  }
  return FractionalOffset(dx - other.dx, dy - other.dy);
}