writeSelectableLine method

void writeSelectableLine(
  1. RenderOutput out,
  2. String content, {
  3. required bool focused,
  4. bool highlighted = false,
})

Writes a selectable item line with full formatting.

Convenience method that combines selectableLine with writeLine.

Implementation

void writeSelectableLine(
  RenderOutput out,
  String content, {
  required bool focused,
  bool highlighted = false,
}) {
  final line = selectableLine(content, focused: focused);
  writeLine(out, line, highlighted: highlighted && focused);
}