operator + method

ComposedTransition operator +(
  1. MotionTransition other
)

Composes this transition with other so both effects apply simultaneously.

Implementation

ComposedTransition operator +(MotionTransition other) {
  if (this is ComposedTransition) {
    return ComposedTransition([
      ...(this as ComposedTransition).transitions,
      other,
    ]);
  }
  return ComposedTransition([this, other]);
}