operator + method

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

Returns the sum of two Alignments.

Implementation

@override
Alignment operator +(Alignment other) {
  if (other is! FractionalOffset)
    return super + other;
  final FractionalOffset typedOther = other as FractionalOffset;
  return FractionalOffset(dx + typedOther.dx, dy + typedOther.dy);
}