render method Null safety

void render(
  1. StringBuffer buffer
)

Implementation

void render(StringBuffer buffer) {
  var addSpace = false;
  for (final term in searchTerms) {
    if (addSpace) {
      buffer.write(' ');
    }
    buffer.write(term.term);
    addSpace = !term.term.endsWith('\n');
  }
}