writeInto method
Writes this component into the context
by writing to its
GenerationContext.buffer or by introducing bound variables. When writing
into the buffer, no whitespace around the this component should be
introduced. When a component consists of multiple composed component, it's
responsible for introducing whitespace between its child components.
Implementation
@override
void writeInto(GenerationContext context) {
context.buffer.write(_frameType._type);
context.buffer.write(' BETWEEN ');
if (start case final start?) {
_writeBoundary(context, start);
} else {
context.buffer.write('UNBOUNDED PRECEDING');
}
context.buffer.write(' AND ');
if (end case final end?) {
_writeBoundary(context, end);
} else {
context.buffer.write('UNBOUNDED FOLLOWING');
}
if (exclude case final exclude?) {
context.buffer.write(' EXCLUDE ');
context.buffer.write(exclude._exclude);
}
}