operator - method Null safety

AlignmentDirectional operator -(
  1. AlignmentDirectional other
)

Returns the difference between two AlignmentDirectionals.

Implementation

AlignmentDirectional operator -(AlignmentDirectional other) {
  return AlignmentDirectional(start - other.start, y - other.y);
}