SequenceMiddleResultExpression<E> constructor

SequenceMiddleResultExpression<E>(
  1. List<Expression> before,
  2. Expression<E> expression,
  3. List<Expression> after
)

Implementation

SequenceMiddleResultExpression(this.before, this.expression, this.after)
    : super(UnmodifiableListView([...before, expression, ...after])) {
  if (before.isEmpty) {
    throw ArgumentError.value(before, 'before', 'Must not be empty');
  }

  if (after.isEmpty) {
    throw ArgumentError.value(after, 'after', 'Must not be empty');
  }
}