SequenceFirstLastResultExpression<E1, E2> constructor

SequenceFirstLastResultExpression<E1, E2>(
  1. Expression<E1> first,
  2. List<Expression> middle,
  3. Expression<E2> last
)

Implementation

SequenceFirstLastResultExpression(this.first, this.middle, this.last)
    : super(UnmodifiableListView([first, ...middle, last])) {
  if (middle.isEmpty) {
    throw ArgumentError.value(middle, 'middle', 'Must not be empty');
  }
}